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,104 of 188,742
Downloads: 87,104
Daily
Ranking: 10,326 of 188,718
Downloads: 83
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,693 | 43,209 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,201,589,493 | rake |
| 29 | 940,867,791 | rspec |
| 57 | 636,329,410 | rubocop |
| 74 | 569,205,494 | pry |
| 100 | 434,468,697 | byebug |
| 178 | 262,145,416 | pry-byebug |
| 188 | 251,012,357 | rubocop-rspec |
| 194 | 244,852,869 | timecop |
| 301 | 154,575,020 | colorize |
| 936 | 50,041,378 | resque |
| 1,556 | 23,244,161 | fakeredis |
| 9,184 | 356,200 | rspec-stubbed_env |
| 9,502 | 332,086 | rspec-block_is_expected |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |