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,379 of 192,104
Downloads: 96,986
Daily
Ranking: 14,312 of 192,085
Downloads: 24
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,904 | 44,306 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,291,638,605 | rake |
| 29 | 970,683,748 | rspec |
| 56 | 678,325,313 | rubocop |
| 73 | 594,715,801 | pry |
| 102 | 452,364,881 | byebug |
| 183 | 271,785,240 | pry-byebug |
| 187 | 267,033,872 | rubocop-rspec |
| 195 | 254,835,182 | timecop |
| 308 | 159,398,795 | colorize |
| 942 | 51,915,221 | resque |
| 1,572 | 24,025,519 | fakeredis |
| 8,880 | 407,905 | rspec-block_is_expected |
| 9,098 | 386,332 | rspec-stubbed_env |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |