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: 17,460 of 196,051
Downloads: 112,217
Daily
Ranking: 9,038 of 195,980
Downloads: 203
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,978 | 46,011 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,392,453,331 | rake |
| 29 | 1,009,870,499 | rspec |
| 57 | 733,052,249 | rubocop |
| 72 | 626,260,300 | pry |
| 108 | 474,581,617 | byebug |
| 184 | 289,924,483 | rubocop-rspec |
| 190 | 284,402,200 | pry-byebug |
| 200 | 269,486,089 | timecop |
| 322 | 166,288,554 | colorize |
| 952 | 54,172,435 | resque |
| 1,591 | 25,020,499 | fakeredis |
| 8,403 | 509,593 | rspec-block_is_expected |
| 8,649 | 479,263 | rspec-stubbed_env |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |