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,928 of 193,373
Downloads: 428,517
Daily
Ranking: 31,872 of 193,360
Downloads: 5
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,644 | 201,454 | resque-progress |
| 36,021 | 36,515 | patella |
| 43,232 | 28,605 | resque-result |
| 48,716 | 24,344 | resque-integration |
| 66,846 | 15,734 | resque-job-tracking |
| 79,777 | 12,085 | travis-ruby |
| 145,571 | 4,150 | resque-single |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | lmarlow |