Category : queue

I’m scheduling Laravel jobs through kernel.php. I use the following syntax: $schedule->job((new ExampleJob()->onQueue(‘explicitQueue’))->everyFifteenMinutes(); However, a few jobs get dispatched to the default queue instead of the queue that I pass explicitly. Wondering why there is this inconsistency. There is no other place in the code where I dispatch any jobs. Any help is appreciated! Source: ..

Read more

According to the documentation, in order to execute a couple of jobs in sequence one may use the following approach: Bus::chain([ new ProcessPodcast, new OptimizePodcast, new ReleasePodcast, ])->dispatch(); What I didn’t get from the documentation is if there’s a guarantee that this jobs will run in sequence even when multiple workers are defined for that ..

Read more

I have a scheduled process that need to prepare a bunch of jobs together for notification on end. Looking on Laravel documentation i fund that you can Job Batching. But apparently not in lumen, or at least is what i thought because i keep recive error during the dispach of the batch. Following the doc ..

Read more

I’m working on a User being able to download multiple .csv files using checkboxes, as a single .zip file. I created a job for this called DeleteCsvFiles. Below is my controller with my code and the line that dispatches the job after 5 minutes. ClientController.php: public function exportMultipleCsvAsZip() { $zip_file = ‘participant-conference.zip’; // Name of ..

Read more

i have two tables called Inventory and Product. in both Inventory->inventory_id and Product->product_code and both ‘sku’ fields in two tables are same, some Inventory->sku fields are empty. i want to insert all the Inventory->sku from Product->sku where Inventory->inventory_id = Product->product_code. Controller <?php namespace AppHttpControllers; use IlluminateHttpRequest; use AppInventory; use AppProduct; use AppJobsAddProductQueue; class InventoryController extends ..

Read more

I want tp apply queue for my Notifications, so I implemented that at my Notification which ResetPassword: class ResetPassword extends Notification implements ShouldQueue Then I ran php artisan queue:table and migrate it so the table jobs created successfully at the DB. And also change the QUEUE_CONNECTION to database at .env file and re-run php artisan ..

Read more

I need your help. I’m working with Laravel 5.5 queue and with Linux supervisor tool (Exactly like it the documentation) Now I have a very weird issue. When I use this command without delay event(new NewOrderHasBeenPlaceEvent($get_order_details, $tran_id, $customerDet->phone)); It’s working fine. But when I use the delay option event(new NewOrderHasBeenPlaceEvent($get_order_details, $tran_id, $customerDet->phone))->delay(Carbon::now()->addMinutes(5)); I got an ..

Read more

I am running a supervisor on server for my queue work events in my Laravel project. The supervisor works perfectly for queued jobs but when I check the worker.log file, there are an exception occurring every second. The exception is ErrorException A non well formed numeric value encountered at /var/www/html/mySampleProject/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:729 725â–• { 726â–• if ($seconds ..

Read more

I’ve two email scripts: send order notification to customer using default email parameters send shipping notification to customer using dynamic email parameters The issue is: from the queue, when the shipping notification is send and next the order notification, From Email Address is taking from the dynamic email parameters instead of default email parameters. I ..

Read more