Skip to content

Instantly share code, notes, and snippets.

@noahd1
Created February 12, 2014 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noahd1/8958083 to your computer and use it in GitHub Desktop.
Save noahd1/8958083 to your computer and use it in GitHub Desktop.
start = 9300
total = 10460
index = 0
failures = Resque::Failure.all(start, total - start);nil
failures.each do |failure|
index += 1
if failure["payload"]["class"] == "SendWeeklySummary" && failure["retried_at"].nil?
Resque::Failure.requeue(index + start - 1)
end
end;nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment