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: 9,199 of 197,258
Downloads: 432,115
Daily
Ranking: 34,472 of 197,235
Downloads: 3
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,942 | 204,122 | resque-progress |
| 36,942 | 36,736 | patella |
| 44,316 | 28,735 | resque-result |
| 48,633 | 25,367 | resque-integration |
| 67,996 | 15,969 | resque-job-tracking |
| 80,837 | 12,312 | travis-ruby |
| 147,248 | 4,254 | resque-single |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | lmarlow |