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: 138,854 of 188,779
Downloads: 4,343
Daily
Ranking: 55,176 of 188,757
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 |
|---|---|---|
| 10 | 1,202,684,222 | rake |
| 29 | 941,363,553 | rspec |
| 936 | 50,071,527 | resque |
| 996 | 46,859,622 | mock_redis |
| 2,912 | 5,583,488 | debugger |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | nogara |