Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davidofadelaide's avatar

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.

0 likes
2 replies
lostdreamer_nl's avatar
Level 53

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

Please or to participate in this conversation.