Skip to content

Instantly share code, notes, and snippets.

@wireframe
Created February 2, 2011 17:09
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 wireframe/808002 to your computer and use it in GitHub Desktop.
Save wireframe/808002 to your computer and use it in GitHub Desktop.
inspect failed resque jobs for particular errors
start = 0
max = Resque.redis.llen(:failed).to_i
count = 100
errors = []
while start < max
Resque.list_range(:failed, start, count).each do |e|
errors << e if e['payload']['args'].first == 'User'
end
start += count
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment