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,691 of 190,317
Downloads: 91,853
Daily
Ranking: 10,761 of 190,280
Downloads: 108
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,672 | 43,885 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,255,248,311 | rake |
| 29 | 957,358,331 | rspec |
| 56 | 659,701,421 | rubocop |
| 72 | 583,359,451 | pry |
| 102 | 444,403,952 | byebug |
| 181 | 267,624,757 | pry-byebug |
| 188 | 259,952,754 | rubocop-rspec |
| 194 | 250,490,367 | timecop |
| 305 | 157,347,660 | colorize |
| 943 | 51,059,878 | resque |
| 1,564 | 23,710,395 | fakeredis |
| 9,111 | 375,346 | rspec-stubbed_env |
| 9,130 | 372,702 | rspec-block_is_expected |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |