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: 139,018 of 189,199
Downloads: 4,352
Daily
Ranking: 114,730 of 189,169
Downloads: 0
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 |
|---|---|---|
| 9 | 1,225,825,609 | rake |
| 29 | 946,846,304 | rspec |
| 941 | 50,405,337 | resque |
| 995 | 47,341,050 | mock_redis |
| 2,930 | 5,585,795 | debugger |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | nogara |