Skip to content

Setting an APP_ENV other than local and production will not launch workers #1567

@RyanPaiva56

Description

@RyanPaiva56

Horizon Version

v5.33.0

Laravel Version

12.18

PHP Version

8.2

Redis Driver

PhpRedis

Redis Version

^2

Database Driver & Version

Postgres

Description

If you set an APP_ENV to something like staging, horizon will start but no workers will start.

In horizon.php config, I have:

'defaults' => [
        'supervisor-1' => [
            'connection' => 'redis',
            'queue' => ['default', 'coordinates', 'emails', 'media'],
            'balance' => 'simple',
            'autoScalingStrategy' => 'size',
            'maxProcesses' => 6,
            'maxTime' => 0,
            'maxJobs' => 0,
            'memory' => 2048,
            'tries' => 1,
            'timeout' => 60,
            'nice' => 0,
            'force' => true,
        ],
        'supervisor-2' => [
            'connection' => 'redis',
            'queue' => ['licenses'],
            'balance' => 'simple',
            'autoScalingStrategy' => 'size',
            'maxProcesses' => 6,
            'maxTime' => 0,
            'maxJobs' => 0,
            'memory' => 2048,
            'tries' => 1,
            'timeout' => 60,
            'nice' => 0,
            'force' => true,
        ],
    ],

Steps To Reproduce

  1. Set default values for supervisor connections.
  2. Start horizon.
  3. Workers wont start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions