Jun 24, 2016
2
Level 1
Failing Jobs
When a user registers their welcome email gets pushed onto a job queue, when this queue is processed the job can sometimes fail if the user has subsequently been deleted. As when the job is processed it returns ModelNotFoundException as the User is type hinted in the constructor like so:
public function __construct(UserModel $user)
{
$this->user = $user;
}
However this doesn't seem to trigger in the Queue::failing(); catcher I had written in EventServiceProvider::boot method. Is there something I'm missing? It does however successfully move into the failed jobs table.
Regards -Darkninja462
Please or to participate in this conversation.