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,368 of 191,854
Downloads: 95,956
Daily
Ranking: 13,174 of 191,816
Downloads: 25
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,758 | 44,211 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,285,080,020 | rake |
| 29 | 968,524,191 | rspec |
| 56 | 675,173,482 | rubocop |
| 73 | 592,850,910 | pry |
| 102 | 450,948,004 | byebug |
| 182 | 271,084,660 | pry-byebug |
| 187 | 265,834,478 | rubocop-rspec |
| 195 | 254,071,590 | timecop |
| 308 | 159,037,473 | colorize |
| 943 | 51,771,348 | resque |
| 1,571 | 23,972,887 | fakeredis |
| 8,911 | 402,753 | rspec-block_is_expected |
| 9,089 | 385,160 | rspec-stubbed_env |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |