queue
queue copied to clipboard
[Question] How to make retry to work after job failed
How do I make the job queue to requeue after a job failure?
If the exception is a RetryableJobError, queue_job will retry automatically.
@aliencrash model.requeue_stuck_jobs(enqueued_delta=5, started_delta=5) should take care of that. See that I also added 5 minutes to started_delta to ensure started jobs are also requeued after a set time.
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.