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,403 of 196,051
Downloads: 316,643
Daily
Ranking: 14,526 of 195,980
Downloads: 61
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 50,033 | 24,065 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,392,453,331 | rake |
| 29 | 1,009,870,499 | rspec |
| 200 | 269,486,089 | timecop |
| 952 | 54,172,435 | resque |
| 955 | 54,119,258 | mock_redis |