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,001 of 180,507
Downloads: 272,318
Daily
Ranking: 13,371 of 180,487
Downloads: 61
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
48,602 | 19,899 | serially |
Depends on
Rank | Downloads | Name |
---|---|---|
16 | 855,753,735 | rake |
23 | 768,975,035 | rspec |
170 | 192,652,569 | timecop |
834 | 41,818,993 | resque |
959 | 34,256,978 | mock_redis |