Config Laravel Horizon, queue, balance, processes and priority in redis

configure horizon for multiple installation on the same server

php artisan flush:redis
'queue' => env('REDIS_QUEUE', 'default'),
php artisan horizon
'queue' => env('REDIS_QUEUE', 'foo'),
php artisan config:cache
php artisan horizon
php artisan horizon
php artisan config:cache
php artisan horizon

Note:

'queue' => ['default','foo'],
php artisan horizon
'environments' => [
'production' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default','foo'],
'balance' => 'simple',
'processes' => 10,
'tries' => 3,
],
],
'local' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default','foo'],
'balance' => 'simple',
'processes' => 3,
'tries' => 3,
],
],
],
php artisan queue:work --queue=default,foo
dispatch((new TheJob)->onQueue('foo'));
TheJob::dispatchNow()->onQueue('foo'));
PostPaymentJobTest::dispatch();
dispatch(new PostPaymentJobTest());
'environments' => [
'production' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default'],
'balance' => 'simple',
'processes' => 10,
'tries' => 3,
],
],
'local' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default'],
'balance' => 'simple',
'processes' => 3,
'tries' => 3,
],
],
],
'queue' => ['high','default','low'],'balance' => 'false',
'queue' => [‘high’,‘default’,‘low’],
'processes' => 3,
'prefix' => env('APP_NAME').env('HORIZON_PREFIX', '-horizon:'),
'queue' => ['high','default','low'],
'queue' => [
env('QUEUE_HIGH'),
env('QUEUE_DEFAULT'),
env('QUEUE_LOW'),
],

Posting daily about Python, Nuclear Physicist PhD