How to defer work to the last line in Laravel Beanstalk?

How can I put the job back in the queue.

I'm tired

$job->release()

      

but it goes back to the queue, so the next job in the queue is the same job, I want the job to be sent back to the last queue that is executed last. How can i do this?

+3


source to share


1 answer


You can throw an exception that causes the jobs to run.

And depending on how many queue attempts: work will fire, work will eventually end in the failed_jobs table (if you have this defined.)



Then you can post the job back to the queue from the failed_jobs table.

0


source







All Articles