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: 7,659 of 182,901
Downloads: 407,513
Daily
Ranking: 13,128 of 182,889
Downloads: 22
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
11,413 | 184,662 | resque-progress |
32,627 | 35,182 | patella |
38,996 | 27,844 | resque-result |
51,961 | 18,993 | resque-integration |
64,518 | 14,187 | resque-job-tracking |
79,237 | 10,473 | travis-ruby |
145,540 | 3,548 | resque-single |
Owners
# | Gravatar | Handle |
---|---|---|
1 | lmarlow |