rq / rq-scheduler

A lightweight library that adds job scheduling capabilities to RQ (Redis Queue)
MIT License
1.45k stars 229 forks source link

How to reschedule jobs that failed? #234

Closed taewookim closed 4 years ago

taewookim commented 4 years ago

Im looking for a way to requeue a job that failed w/ max # of retries & exponential back off (i.e. schedule job in future).

I saw this post , so I thought i could use a scheduler to re-queue job (and add num_retry in meta).

Any other elegant solutions?

selwin commented 4 years ago

I'm working on a PR that adds job retry feature natively into RQ here https://github.com/rq/rq/pull/1299 . It's not yet released, but should be done sometime in the next few weeks.