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,063 of 191,854
Downloads: 309,416
Daily
Ranking: 12,079 of 191,816
Downloads: 30
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,647 | 23,328 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,285,080,020 | rake |
| 29 | 968,524,191 | rspec |
| 195 | 254,071,590 | timecop |
| 943 | 51,771,348 | resque |
| 986 | 49,483,413 | mock_redis |