How can I push a job back into the queue.
I tired
$job->release()
but it is pushing back on to the queue so the next job in the queue is that same job, I want the job send back to the last of the queue,which executes last. How can I do that?
How can I push a job back into the queue.
I tired
$job->release()
but it is pushing back on to the queue so the next job in the queue is that same job, I want the job send back to the last of the queue,which executes last. How can I do that?
You can throw an exception making the job fail.
And depending on how many tries the queue:work will fire, the job will ultimately end up in the failed_jobs table (if you have that defined.)
You can then push the job back on to the queue from the failed_jobs table.