Categories: None [Edit]
nogara-resque-lonely_job
Ensures that for a given queue, only one worker is working on a job at any given time.
Example:
require 'resque/plugins/lonely_job'
class StrictlySerialJob
extend Resque::Plugins::LonelyJob
@queue = :serial_work
def self.perform
# only one at a time in this block, no parallelism allowed for this
# particular queue
end
end
Total
Ranking: 140,541 of 193,756
Downloads: 4,443
Daily
Ranking: 71,816 of 193,649
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,345,947,699 | rake |
| 29 | 989,540,006 | rspec |
| 947 | 53,045,019 | resque |
| 973 | 51,829,134 | mock_redis |
| 3,030 | 5,615,428 | debugger |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | nogara |