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,973 of 189,766
Downloads: 305,975
Daily
Ranking: 19,433 of 189,739
Downloads: 15
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,417 | 23,022 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,242,058,526 | rake |
| 29 | 952,467,422 | rspec |
| 194 | 248,831,979 | timecop |
| 943 | 50,765,666 | resque |
| 996 | 47,860,856 | mock_redis |