Categories: None [Edit]
resque-result
If you want to be able fetch the result from a Resque
job's perform method. Results will be encoded using JSON.
For example:
require 'resque-result'
class MyJob
extend Resque::Plugins::Result
def self.perform(meta_id, big_num)
factor(big_num)
end
end
meta0 = MyJob.enqueue(3574406403731)
meta0.enqueued_at # => 'Wed May 19 13:42:41 -0600 2010'
meta0.meta_id # => '03c9e1a045ad012dd20500264a19273c'
# later
meta1 = MyJob.get_meta('03c9e1a045ad012dd20500264a19273c')
meta1.succeeded? # => true
meta1.result # => [ 1299709, 2750159 ]
Total
Ranking: 44,114 of 196,619
Downloads: 28,700
Daily
Ranking: 112,090 of 196,594
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 26,821 | 56,997 | quorum |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 955 | 54,736,182 | resque |
| 9,155 | 431,502 | resque-meta |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | lmarlow |