laravel / horizon

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

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

Closed shijunti19 closed 7 months ago

shijunti19 commented 7 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 7 months ago

Horizon only works with Redis so this default is fine.