queue icon indicating copy to clipboard operation
queue copied to clipboard

[Question] How to make retry to work after job failed

Open aliencrash opened this issue 3 years ago • 2 comments

How do I make the job queue to requeue after a job failure?

aliencrash avatar Jun 02 '22 18:06 aliencrash

If the exception is a RetryableJobError, queue_job will retry automatically.

sbidoul avatar Jul 01 '22 13:07 sbidoul

@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.

CasVissers-360ERP avatar Jul 30 '22 10:07 CasVissers-360ERP

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.

github-actions[bot] avatar Jan 29 '23 12:01 github-actions[bot]