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,209 of 193,214
Downloads: 100,644
Daily
Ranking: 9,258 of 193,188
Downloads: 91
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,867 | 44,946 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,330,047,653 | rake |
| 29 | 983,045,376 | rspec |
| 56 | 695,992,094 | rubocop |
| 72 | 605,239,366 | pry |
| 102 | 459,859,491 | byebug |
| 184 | 275,908,198 | pry-byebug |
| 186 | 274,520,273 | rubocop-rspec |
| 196 | 260,249,605 | timecop |
| 313 | 161,588,338 | colorize |
| 944 | 52,688,167 | resque |
| 1,578 | 24,430,384 | fakeredis |
| 8,589 | 450,804 | rspec-block_is_expected |
| 9,097 | 404,748 | rspec-stubbed_env |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |