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,414 of 183,781
Downloads: 281,504
Daily
Ranking: 10,023 of 183,770
Downloads: 50
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
48,912 | 21,002 | serially |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 979,950,024 | rake |
26 | 830,303,403 | rspec |
176 | 213,755,821 | timecop |
888 | 44,851,048 | resque |
988 | 39,294,565 | mock_redis |