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,401 of 198,575
Downloads: 4,519
Daily
Ranking: 83,483 of 198,547
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 |
|---|---|---|
| 8 | 1,465,647,176 | rake |
| 29 | 1,041,667,060 | rspec |
| 939 | 57,439,432 | mock_redis |
| 957 | 55,869,890 | resque |
| 3,136 | 5,651,669 | debugger |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | nogara |