Hi,
I just started using Horizon, and it seems awesome. I do have something weird going on: all my jobs are being put on the same 'default' queue.
I defined 2 queues in my horizon.php file
'local' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default','reminders'],
'balance' => 'auto',
'processes' => 6,
'tries' => 3,
],
In my code I explicitly chose the 'reminders' queue for a job: SetupReminders::dispatch($user,$calendar)->onQueue('reminders');
But these jobs are being executed by the default queue (recent jobs -> they are all on default). The 'reminders' queue does show up in the dashboard under 'current workload'...
What am I missing here? How can I make sure that those jobs with ->onQueue('reminders') are actually being executed by the reminders queue?
You can check out this tutorial for learning how to install Laravel Horizon and how to configure your queues with it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community