Closed
Description
- Horizon Version:v3.1.2
- Laravel Version: v5.8.3
- PHP Version: 7.2 (7.3 in Homestead v7.20.0)
- Redis Driver & Version: predis v1.1.1
- Database Driver & Version: Mysql 5.7+
Issue… or "feature"?
Setting horizon processors to 0, doesn't set the processors to 0. It instead starts a processor.
I'm using a three section (internal, inbound, outbound) production queue set up and using queue hierarchy to handle orders of operations. I'm attempting to utilize some spare front end cpu cycles, but the main issue is that the outbound requires a single hierarchical connection across all workers.
Steps to reproduce
Set any processor to 0.
config/horizon.php
'local' => [
'none' => [
'connection' => 'redis',
'queue' => ['default'],
'balance' => 'simple', // or 'false'
'processes' => 0,
'tries' => 3,
],
],
Actual Settings
Can you image I used tinker and saw 2. 0. 0.?
'environments' => [
'production' => [
'internal' => [
'connection' => 'redis',
'queue' => ['urgent', 'default', 'build', 'mutate'],
'balance' => 'false',
'processes' => 4 * (int) env('WORKER_QUEUE_ENABLED', false) ?: 2 * (int) env('WEB_QUEUE_ENABLED', false),
'tries' => 3,
'memory'=> 512,
],
'egres' => [
'connection' => 'redis',
'queue' => ['toplevel', 'secondlevel', 'thirdlevel'],
'balance' => 'false',
'processes' => 1 * (int) env('WORKER_QUEUE_ENABLED', false),
'tries' => 3,
'timeout' => 300,
'memory'=> 512,
],
'ingres' => [
'connection' => 'redis',
'queue' => ['sync', 'inventory'],
'balance' => 'false',
'processes' => 12 * (int) env('WORKER_QUEUE_ENABLED', false),
'tries' => 3,
'timeout' => 90,
'memory'=> 512,
],
],
...
Metadata
Metadata
Assignees
Labels
No labels