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: 135,282 of 183,477
Downloads: 4,084
Daily
Ranking: 63,432 of 183,470
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 |
---|---|---|
10 | 969,073,546 | rake |
25 | 825,073,950 | rspec |
879 | 44,611,635 | resque |
985 | 38,895,331 | mock_redis |
2,606 | 5,548,213 | debugger |
Owners
# | Gravatar | Handle |
---|---|---|
1 | nogara |