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,703 of 192,290
Downloads: 427,222
Daily
Ranking: 28,840 of 192,263
Downloads: 6
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,432 | 200,284 | resque-progress |
| 35,749 | 36,407 | patella |
| 42,907 | 28,549 | resque-result |
| 48,744 | 24,000 | resque-integration |
| 66,657 | 15,614 | resque-job-tracking |
| 79,632 | 11,966 | travis-ruby |
| 145,361 | 4,106 | resque-single |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | lmarlow |