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: 10,115 of 192,454
Downloads: 310,166
Daily
Ranking: 19,416 of 192,434
Downloads: 10
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,689 | 23,458 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,304,391,570 | rake |
| 29 | 974,552,057 | rspec |
| 195 | 256,835,155 | timecop |
| 943 | 52,168,557 | resque |
| 980 | 50,154,454 | mock_redis |