Skip to content

Instantly share code, notes, and snippets.

@metin
Created May 21, 2013 14:28
Show Gist options
  • Save metin/5620211 to your computer and use it in GitHub Desktop.
Save metin/5620211 to your computer and use it in GitHub Desktop.
Query DJ Queue
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