Zayar's avatar
Level 11

Horizon status inactive

Hi, so I recently launched a laravel site and I'm using horizon for cues with redis. I set it up with supervisor and it was working fine for almost a month until recently horizons stopped working. When I log into the dashboard of horizon I see the status as inactive but when I check the supervisor status it says horizon is running. I'm kind of lost here I don't know where the problem is maybe it's the memory or something.

0 likes
5 replies
Sinnbeck's avatar

Can you try killing horizon on the server and see if it starts up again correctly?

Run this on the server

php artisan horizon:purge
php artisan horizon:terminate
Zayar's avatar
Level 11

Thanks for helping me out here.

I did the following and after that, it started working again:

sudo supervisorctl restart horizon

Though it's running I still don't know why it happened in the first place. Is it because of memory? Do I need to increase it?

Following is the horizon config. I updated the memory to 512 in .env file.

'memory_limit' => 64,


    'defaults' => [
        'supervisor-1' => [
            'connection' => 'redis',
            'queue' => ['default'],
            'balance' => 'auto',
            'maxProcesses' => 1,
            'memory' => env('HORIZON_MEMORY', 128),
            'tries' => 1,
            'nice' => 0,
        ],
    ],

    'environments' => [
        'production' => [
            'supervisor-1' => [
                'maxProcesses' => 10,
                'balanceMaxShift' => 1,
                'balanceCooldown' => 3,
            ],
        ],

        'local' => [
            'supervisor-1' => [
                'maxProcesses' => 3,
            ],
        ],
    ],
Sinnbeck's avatar

All I could find is that it might be a randomly occuring bug in versions older that 2.0. Perhaps try upgrading to latest version.

Zayar's avatar
Level 11

Yes, maybe it's a bug. For now, I will just stick with the current version and see if it occurs again. Again, thanks for helping.

Sinnbeck's avatar

Happy to help. I personally restart horizon with the above commands whenever deploying, and have never had issues :)

1 like

Please or to participate in this conversation.