Skip to content

Instantly share code, notes, and snippets.

@jhsu
Forked from jrom/gist:1162348
Created April 3, 2012 13:38
Show Gist options
  • Save jhsu/2292055 to your computer and use it in GitHub Desktop.
Save jhsu/2292055 to your computer and use it in GitHub Desktop.
Requeue failed resque jobs
(Resque::Failure.count-1).downto(0).each { |i| Resque::Failure.requeue(i) }
Resque::Failure.clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment