How to fire an event whenever job gets failed

Posted 3 weeks ago by deepu07

Hi guys I wanna fire an event whenever laravel job gets failed. I’m trying to use

public function failed(Exception $exception)
        event(new JobFailed($exception));

Somehow it is not firing. do you guys have any idea why it is not firing?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.