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: 9,907 of 188,757
Downloads: 303,737
Daily
Ranking: 11,355 of 188,742
Downloads: 61
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,347 | 22,881 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,202,260,445 | rake |
| 29 | 941,173,382 | rspec |
| 194 | 244,964,985 | timecop |
| 936 | 50,061,479 | resque |
| 996 | 46,842,522 | mock_redis |