2 weeks ago

Job does not fail when exception occurs in a shouldQueue Notification

Posted 2 weeks ago by laracoft


Due to my mistake, my Notification class throws an exception when queue:work tries to dispatch it. And the Notification does not complete as a result. This raises the following questions:

  1. Why is it the Notification job does not end up in the failed_jobs table? It did throw an exception after all.
  2. queue:worker remains running and does not report any errors on the CLI.
  3. I use to catch all exceptions via email, it was also not triggered, why?
  4. How can I receive exceptions from such mistakes? It took too much effort to track this down the mistake causing the exception.

Thank you.

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