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: 143,830 of 199,406
Downloads: 4,555
Daily
Ranking: 166,138 of 199,354
Downloads: 3
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 |
|---|---|---|
| 7 | 1,484,676,672 | rake |
| 29 | 1,050,507,074 | rspec |
| 937 | 58,241,475 | mock_redis |
| 959 | 56,352,943 | resque |
| 3,145 | 5,656,010 | debugger |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | nogara |