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: 18,838 of 189,654
Downloads: 90,113
Daily
Ranking: 9,661 of 189,628
Downloads: 103
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,703 | 43,542 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 9 | 1,238,481,866 | rake |
| 29 | 951,193,561 | rspec |
| 56 | 651,086,082 | rubocop |
| 74 | 578,202,325 | pry |
| 100 | 440,784,513 | byebug |
| 181 | 265,632,994 | pry-byebug |
| 188 | 256,648,396 | rubocop-rspec |
| 195 | 248,429,430 | timecop |
| 305 | 156,403,606 | colorize |
| 943 | 50,688,928 | resque |
| 1,562 | 23,560,285 | fakeredis |
| 9,102 | 371,302 | rspec-stubbed_env |
| 9,222 | 359,384 | rspec-block_is_expected |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |