Skip to content

Instantly share code, notes, and snippets.

@akachrislee
Created December 6, 2013 23:13
Show Gist options
  • Save akachrislee/7833774 to your computer and use it in GitHub Desktop.
Save akachrislee/7833774 to your computer and use it in GitHub Desktop.
removes failed resque jobs (with out retrying)
i = 0
queue = 'sftargeting'
while job = Resque::Failure.all(i)
if job['queue'] == queue
# This will remove the failure from the array so do not increment the index.
Resque::Failure.remove(i)
else
i+=1
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment