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,011 of 190,529
Downloads: 307,423
Daily
Ranking: 12,946 of 190,497
Downloads: 42
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,387 | 23,207 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,260,447,422 | rake |
| 29 | 959,406,060 | rspec |
| 194 | 251,104,016 | timecop |
| 943 | 51,189,774 | resque |
| 994 | 48,618,807 | mock_redis |