Categories: None [Edit]
nogara-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: 138,112 of 187,591
Downloads: 4,293
Daily
Ranking: 111,315 of 187,571
Downloads: 6
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,165,649,814 | rake |
| 28 | 925,037,502 | rspec |
| 936 | 48,957,059 | resque |
| 998 | 45,498,661 | mock_redis |
| 2,867 | 5,575,618 | debugger |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | nogara |