laravel / horizon

Dashboard and code-driven configuration for Laravel queues.
https://laravel.com/docs/horizon
MIT License
3.82k stars 636 forks source link

The horizon and queue methods must be consistent, so I suggest reading the same value #1423

Closed shijunti19 closed 2 months ago

shijunti19 commented 2 months ago

config/horizon.php 'defaults' => [ 'supervisor-1' => [ 'connection' => 'redis', 'queue' => ['default'], 'balance' => 'auto', 'autoScalingStrategy' => 'time', 'maxProcesses' => 1, 'maxTime' => 0, 'maxJobs' => 0, 'memory' => 128, 'tries' => 1, 'timeout' => 60, 'nice' => 0, ], ], 'connection' => 'redis', Should default to 'connection' => env('QUEUE_CONNECTION', 'database'),

The horizon and queue methods must be consistent, so I suggest reading the same value

driesvints commented 2 months ago

Horizon only works with Redis so this default is fine.