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

marcosdipaolo's avatar

failed() method not running on failed Jobs

I'm encountering issued trying to execute the failed method when a Job fails. I'm on laravel 10 and according to the docs the failed method should execute as soon as the job fails with the exception being passed.

Any thought or experiences about this?

0 likes
3 replies
Snapey's avatar

This might not work if the job runs out of memory. Could that be the case?

marcosdipaolo's avatar
marcosdipaolo
OP
Best Answer
Level 4

I'd like to dismiss completely this thread since I was using a remote db by accident and of course the job was being picked up by the remote queue and not the local.

Please or to participate in this conversation.