May 18, 2016
0
Level 2
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!
Please or to participate in this conversation.