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,074 of 197,861
Downloads: 4,503
Daily
Ranking: 73,908 of 197,834
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,447,561,113 | rake |
| 29 | 1,033,456,311 | rspec |
| 939 | 56,615,803 | mock_redis |
| 954 | 55,435,142 | resque |
| 3,113 | 5,646,525 | debugger |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | nogara |