Level 4
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?
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() ?
Please or to participate in this conversation.