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,723 of 186,959
Downloads: 296,901
Daily
Ranking: 10,410 of 186,713
Downloads: 133
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
49,616 | 21,627 | serially |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 1,128,098,871 | rake |
27 | 909,387,510 | rspec |
188 | 234,305,318 | timecop |
934 | 48,016,426 | resque |
995 | 44,233,260 | mock_redis |