A more consistent way to inspect resque jobs
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/resque
.gitignore
Gemfile
Rakefile
Readme.md
resque-task.gemspec

Readme.md

Resque-task

Gem Version

This is a gem designed to work with Resque (tested with >= 1.13.0) to facilitate easier enumeration.

Examples

class SomeClass
  def self.perform(name)
    raise
  end
end

Resque.enqueue(SomeClass, "Jared Fraser")

Resque::Task.failed.each do |task|
  puts "Class: #{task.parent.to_s}"
  puts "Arguments: #{task.args.inspect}"
  puts "Failed at: #{task.failed_at}"
  puts "Status: #{task.status.inspect}"
end

=> Class: SomeClass
=> Arguments: ["Jared Fraser"]
=> Failed at: 2011/05/26 08:45:59
=> Status: :failed

Todo

  • TESTS
  • A better name.