Created
February 2, 2011 17:09
-
-
Save wireframe/808002 to your computer and use it in GitHub Desktop.
inspect failed resque jobs for particular errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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