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,885 of 188,635
Downloads: 303,066
Daily
Ranking: 14,910 of 188,368
Downloads: 40
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 49,379 | 22,747 | serially |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,193,676,273 | rake |
| 29 | 937,507,240 | rspec |
| 192 | 243,762,292 | timecop |
| 936 | 49,753,237 | resque |
| 994 | 46,545,869 | mock_redis |