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,838 of 187,950
Downloads: 301,713
Daily
Ranking: 13,815 of 187,922
Downloads: 81
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,369 | 22,541 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,176,878,843 | rake |
| 28 | 929,993,045 | rspec |
| 192 | 241,296,240 | timecop |
| 936 | 49,274,187 | resque |
| 997 | 45,906,543 | mock_redis |