I have supervisor for managing queue notifications as suggested in the laravel documentation . I have configured the supervisor as per the documentation and here is my configuration file.
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/application/artisan queue:work --tries=3
autostart=true
autorestart=true
user=root
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/application/storage/logs/worker/worker.log
This works fine but the problem is after sometime all the workers stops and doesn't restart even though there is pending jobs to be completed.
I need to manually restart the supervisor using sudo supervisorctl start laravel-worker:*.
How can this be resolved ?
Supervisorctl does not auto-restart daemon queue worker when hanging This is similar problem but the solution given there is the same thing i am using here.
Can anyone please help ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire