Categories: None [Edit]
resque-meta
A Resque plugin. If you want to be able to add metadata for a job
to track anything you want, extend it with this module.
For example:
require 'resque-meta'
class MyJob
extend Resque::Plugins::Meta
def self.perform(meta_id, *args)
heavy_lifting
end
end
meta0 = MyJob.enqueue('stuff')
meta0.enqueued_at # => 'Wed May 19 13:42:41 -0600 2010'
meta0.meta_id # => '03c9e1a045ad012dd20500264a19273c'
meta0['foo'] = 'bar' # => 'bar'
meta0.save
# later
meta1 = MyJob.get_meta('03c9e1a045ad012dd20500264a19273c')
meta1.job_class # => MyJob
meta1.enqueued_at # => 'Wed May 19 13:42:41 -0600 2010'
meta1['foo'] # => 'bar'
Total
Ranking: 8,411 of 187,591
Downloads: 420,563
Daily
Ranking: 22,660 of 187,571
Downloads: 21
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,092 | 194,787 | resque-progress |
| 34,633 | 35,951 | patella |
| 41,440 | 28,331 | resque-result |
| 50,002 | 22,029 | resque-integration |
| 65,761 | 15,146 | resque-job-tracking |
| 79,765 | 11,375 | travis-ruby |
| 146,127 | 3,869 | resque-single |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | lmarlow |