I have a lot of jobs clogging up the retry queue in Sidekiq, with a high latency. For some reason they are not worked on, and I cannot find a way to directly schedule the retry of these jobs from the retry queue itself.
How would I go about doing that, essentially force-retrying all of them?
There seems to be no way to do this directly. Retried jobs whose retries are exhausted should eventually go to the
DeadSet. First collect the retried jobs and their arguments:Now, schedule an immediate retry for each job:
Finally, we clear the retry queue: