Categories: None [Edit]
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: 9,878 of 188,277
Downloads: 302,734
Daily
Ranking: 13,836 of 188,252
Downloads: 57
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,371 | 22,715 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,189,560,286 | rake |
| 29 | 935,725,168 | rspec |
| 192 | 243,177,443 | timecop |
| 936 | 49,635,232 | resque |
| 995 | 46,391,841 | mock_redis |