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: 8,985 of 180,434
Downloads: 272,090
Daily
Ranking: 13,589 of 180,417
Downloads: 39
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
48,577 | 19,864 | serially |
Depends on
Rank | Downloads | Name |
---|---|---|
16 | 852,527,476 | rake |
23 | 767,349,058 | rspec |
170 | 192,103,230 | timecop |
834 | 41,752,491 | resque |
959 | 34,134,263 | mock_redis |