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,868 of 188,189
Downloads: 302,463
Daily
Ranking: 18,101 of 188,174
Downloads: 24
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,378 | 22,663 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,186,162,566 | rake |
| 29 | 934,188,853 | rspec |
| 192 | 242,632,768 | timecop |
| 935 | 49,527,236 | resque |
| 995 | 46,238,661 | mock_redis |