Skip to content

Instantly share code, notes, and snippets.

@devdatta
Created March 18, 2010 07:22
Show Gist options
  • Select an option

  • Save devdatta/336127 to your computer and use it in GitHub Desktop.

Select an option

Save devdatta/336127 to your computer and use it in GitHub Desktop.
ftasks = Resque::Failure.all(0, 1000000)
Resque::Failure.clear()
ftasks.each do |ftask|
queue = ftask["queue"]
payload = ftask["payload"]
Resque::Job.new(queue, payload).recreate()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment