Categories: None [Edit]
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: 9,353 of 183,139
Downloads: 278,902
Daily
Ranking: 8,870 of 183,127
Downloads: 58
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
48,788 | 20,817 | serially |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 954,857,689 | rake |
25 | 818,346,165 | rspec |
173 | 209,837,962 | timecop |
875 | 44,241,593 | resque |
979 | 38,321,025 | mock_redis |