Can anyone help with the correct configuration within horizon.php to get a single supervisor to run multiple queues? I have tried:
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default', 'queue2'],
'balance' => 'simple',
'processes' => 10,
'tries' => 3,
],
as well as:
'supervisor-1' => [
'connection' => 'redis',
'queue' => 'default, queue2',
'balance' => 'simple',
'processes' => 10,
'tries' => 3,
],
The second queue shows up correctly in horizon and I can send jobs to them but they just do not get processed.
I am provisioned on forge and have my queues setup using redis with the following queue.php config:
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default', // Default Queue
'retry_after' => 90,
'block_for' => null,
],
'queue' => 'default, queue2',
(no white space between the queues). I'll leave this open - maybe it will be useful for someone else and there is seems to be fairly little documentation on mutli-queue setups around. – Pilose'queue' => 'default, queue2',
is ther solution to this question, then you should add it as an answer and mark it as accepted answer. – Gayden