0.0
No commit activity in last 3 years
No release in over 3 years
Helper for listing and viewing resque tasks at their various stages
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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.