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

jeroenherczeg's avatar

How to gracefully restart supervisored redis?

I use redis for import queue, my config looks like

[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /home/forge/SITE/current/artisan queue:work --sleep=3 --tries=3 --daemon
autostart=true
autorestart=true
user=forge
numprocs=8
redirect_stderr=true
stdout_logfile=/home/forge/SITE/storage/logs/worker.log

After deploying with envoyer, the command still runs the old release.

If i just restart supervisor worker, it will stop the worker mid-import if I am unlucky.

Anyone has a good solution? Thanks!

0 likes
0 replies

Please or to participate in this conversation.