Queue after employment fails all jobs
Hey Community.
thanks in advance.
I successfully created my application to use a custom laravel job / queue on my local machine.
after deployment though all jobs fail immediately almost as if it didnt try.
is repeats the message
"has been attempted too many times or run too long. The job may have previously timed out"
i cannot see any other errors.
Im using database queue, and a custom command. the records are stored but when it processes them they go straight to the failed jobs table.
If you are sure the code in the job class is ok and not throwing exceptions It might be the timeout / sleep options.
if timeout = 3 and sleep is >= 3, everything will timeout (sleep is counted within the timeout)
Try setting: timeout = 30, sleep = 3, tries = 3 and see if it helps
php artisan queue:work --timeout=30 --sleep=3 --tries=3
Thank you so much @lostdreamer_nl that was enough to open up the actual error that was being thrown!.
appreciate your help!
Please or to participate in this conversation.