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,322 of 193,540
Downloads: 311,993
Daily
Ranking: 12,825 of 193,523
Downloads: 36
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,738 | 23,708 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,341,038,984 | rake |
| 29 | 987,418,354 | rspec |
| 197 | 261,788,277 | timecop |
| 944 | 52,928,834 | resque |
| 974 | 51,603,732 | mock_redis |