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,512 of 188,757
Downloads: 422,691
Daily
Ranking: 12,429 of 188,742
Downloads: 47
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 12,206 | 196,489 | resque-progress |
| 34,984 | 36,186 | patella |
| 41,997 | 28,431 | resque-result |
| 49,392 | 22,856 | resque-integration |
| 65,975 | 15,385 | resque-job-tracking |
| 79,240 | 11,718 | travis-ruby |
| 145,848 | 3,963 | resque-single |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | lmarlow |