Back

Jobs keep updating with increasing id.


msb posted 1 week ago

I am running a cron job in server i.e

/usr/bin/php -q /home/user/site/artisan queue:work --timeout=30 >> /dev/null 2>&1

The email is queued for 5 seconds but the job is being updated in the database with increasing id which is primary id.

While monitoring through ssh and doing php artisan queue:work, the job keeps on processing and never processed !

Tobias van Beek replied 4 days ago

Did you check the logs?

Most of the time this happen of an error occurred during the handling of the job.

Optional, you can add the --tries=10 option, that will stop the job if it fails more then 10 times. (And also put that in the logs)


Sign in to participate in this thread!



We'd like to thank these amazing companies for supporting us