orca's avatar
Level 1

Set Job as failed manually

I'm using Lumen in building my app, and php artisan queue:listen to execute the queue.

In function "handle()", I'm using $this->attempts() to limit failed attempts of the code.

Is there any way to set the job as failed (thus inserting a new data into failed_jobs table) from function handle() ?

0 likes
2 replies
dylanh's avatar

Hey @orca .

I'm trying to get this to work too. Surprisingly, it seems more difficult than I expected it to be! (or really badly documented!)

Did you manage to find a working solution to this?

Please or to participate in this conversation.