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,881 of 188,354
Downloads: 302,959
Daily
Ranking: 13,202 of 188,339
Downloads: 54
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,370 | 22,736 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,192,295,793 | rake |
| 29 | 936,893,351 | rspec |
| 192 | 243,548,653 | timecop |
| 935 | 49,710,550 | resque |
| 995 | 46,490,911 | mock_redis |