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,443 of 191,455
Downloads: 94,515
Daily
Ranking: 7,030 of 191,429
Downloads: 280
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,724 | 44,060 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,273,120,523 | rake |
| 29 | 964,231,479 | rspec |
| 56 | 668,980,859 | rubocop |
| 72 | 588,904,024 | pry |
| 102 | 448,225,803 | byebug |
| 182 | 269,702,593 | pry-byebug |
| 188 | 263,507,092 | rubocop-rspec |
| 195 | 252,649,438 | timecop |
| 307 | 158,360,852 | colorize |
| 943 | 51,488,470 | resque |
| 1,567 | 23,872,608 | fakeredis |
| 9,008 | 390,513 | rspec-block_is_expected |
| 9,093 | 380,702 | rspec-stubbed_env |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |