Categories: None [Edit]
resque-unique_at_runtime
Ensures that for a given queue, only one worker is working on a job at any given time.
Example:
require 'resque/plugins/unique_at_runtime'
class StrictlySerialJob
include Resque::Plugins::UniqueAtRuntime
@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: 19,294 of 187,765
Downloads: 83,786
Daily
Ranking: 8,528 of 187,751
Downloads: 142
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,848 | 42,133 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,171,383,006 | rake |
| 28 | 927,461,508 | rspec |
| 57 | 616,928,508 | rubocop |
| 73 | 558,227,418 | pry |
| 100 | 426,251,370 | byebug |
| 175 | 257,808,896 | pry-byebug |
| 188 | 244,118,555 | rubocop-rspec |
| 193 | 240,423,981 | timecop |
| 298 | 152,091,109 | colorize |
| 935 | 49,110,581 | resque |
| 1,550 | 22,767,894 | fakeredis |
| 9,350 | 334,540 | rspec-stubbed_env |
| 10,026 | 288,362 | rspec-block_is_expected |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |