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: 10,291 of 193,030
Downloads: 311,027
Daily
Ranking: 14,766 of 193,008
Downloads: 33
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,727 | 23,582 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,323,704,807 | rake |
| 29 | 980,978,640 | rspec |
| 195 | 259,511,797 | timecop |
| 944 | 52,568,799 | resque |
| 977 | 50,891,765 | mock_redis |