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,396 of 183,501
Downloads: 280,295
Daily
Ranking: 20,644 of 183,494
Downloads: 10
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
48,887 | 20,907 | serially |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 970,092,883 | rake |
25 | 825,534,096 | rspec |
174 | 212,193,654 | timecop |
881 | 44,634,108 | resque |
985 | 38,930,172 | mock_redis |