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,154 of 188,635
Downloads: 86,165
Daily
Ranking: 13,069 of 188,368
Downloads: 54
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,808 | 42,776 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,193,676,273 | rake |
| 29 | 937,507,240 | rspec |
| 57 | 631,276,572 | rubocop |
| 74 | 566,410,962 | pry |
| 100 | 432,553,432 | byebug |
| 176 | 260,996,083 | pry-byebug |
| 188 | 249,347,337 | rubocop-rspec |
| 192 | 243,762,292 | timecop |
| 300 | 153,966,499 | colorize |
| 936 | 49,753,237 | resque |
| 1,553 | 23,160,278 | fakeredis |
| 9,189 | 352,230 | rspec-stubbed_env |
| 9,665 | 318,385 | rspec-block_is_expected |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |