Created
May 21, 2013 14:28
-
-
Save metin/5620211 to your computer and use it in GitHub Desktop.
Query DJ Queue
This file contains hidden or 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
Delayed::Job.where("last_error is not null").each do |j| | |
h = YAML.load(j.handler) | |
puts "Handler class" | |
puts h.class | |
puts "Handler object" | |
puts h.object | |
puts "Handler method" | |
puts h.method_name | |
puts "Last Error" | |
j.last_error.each_line{|i| puts i} | |
gets | |
end;1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment