resque_retry.rb �k�+ V , V # inspired by http://ariejan.net/2010/08/23/resque-how-to-requeue-failed-jobs # retry all failed Resque jobs except the ones that have already been retried # This is, for instance, useful if you have already retried some jobs via the web interface. Resque::Failure.count.times do |i| Resque::Failure.requeue(i) unless Resque::Failure.all(i, 1)['retried_at'].present? end #
![Retry failed Resque jobs in Ruby](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ef26f6cb4349557952890dbe3e567f7f98dc151/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fassets%2Fgist-og-image-54fd7dc0713e.png)