I have a job which takes upto like 6 hours to complete. I am using laravel database driver for queues and following is the worker:
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/html/laravel/artisan queue:work --queue=default,high,medium,low,least --daemon --timeout=86400
autostart=true
autorestart=true
user=root
numprocs=50
redirect_stderr=true
stdout_logfile=/var/www/html/laravel/worker.log
Issue: The jobs while executing gets removed from Jobs table immediately a process starts executing the queue. However, the job is not completed but it still gets removed form jobs table. Ideally it shall start in jobs table till the job is not completed.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire