Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

FelixINX's avatar

Horizon is active but jobs not processing

Hi,

Since the last update to my app, my Horizon instance is not processing jobs, while being active. I have tried everything that I could think: change in config, reinstalling PHP, PHPredis, Redis but it just dosen't work. There is also no errors or information in my logs file.

Here is the variable I have set in my .env :

QUEUE_CONNECTION=redis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=[...]
REDIS_PORT=6379
REDIS_CLIENT=phpredis

Here is my Horizon configuration :

'environments' => [
        'production' => [
            'supervisor-1' => [
                'connection' => 'redis',
                'queue' => ['vehicles', 'notifications'],
                'balance' => 'simple',
                'processes' => 10,
                'tries' => 1,
            ],
        ],

        'local' => [
            'supervisor-1' => [
                'connection' => 'redis',
                'queue' => ['default'],
                'balance' => 'simple',
                'processes' => 3,
                'tries' => 1,
            ],
        ],
    ],

My config/database.phpand config/queue.php are the same as the original one. I am using PHP 7.4.4, Laravel 7.5.2, Horizon 4.2.1, Redis 5.0.8 and PhpRedis 5.2.1

Any ideas?

Thanks!

0 likes
7 replies
bugsysha's avatar

Have you started it php artisan horizon? What is php artisan horizon:status reporting? Also are you forgetting about Supervisor?

FelixINX's avatar

I didn't start it manually, I have a worker for that. php artisan horizon:status output Horizon is running. while sudu supervisorctl status gives worker-1892:worker-1892_00 RUNNING pid 5854, uptime 12:03:24 I also restarted my server multiple times

bugsysha's avatar

Probably something is mistyped cause you have different queues setup for your production and local?

FelixINX's avatar

Even with the same configuration, it is still working in local while not on this server. On a second server, it's working fine, in production. The weird thing is that it was working before my update, but I didn't change any Horizon related configuration.

Tippin's avatar

Just wondering, on local I see it works the "default" queue, and on production it works the 'vehicles', 'notifications' queues. Are you sure you are pushing jobs to the non-default queues on production? You may also want to add default to that array in case to test, and be sure to config:cache and restart horizon

bugsysha's avatar
bugsysha
Best Answer
Level 61

@tippin I've already asked that.

@felixinx are you using something like Laravel Forge? If so then maybe you can quickly spin up a new server and see if it works there. If it works then just kill the old one.

FelixINX's avatar

@bugsysha Using a new server is working. However I still find it weird that it didn't work with the old one.

Please or to participate in this conversation.