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,363 of 192,666
Downloads: 98,250
Daily
Ranking: 55,902 of 192,588
Downloads: 8
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,865 | 44,646 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,310,508,356 | rake |
| 29 | 976,524,168 | rspec |
| 56 | 686,799,632 | rubocop |
| 72 | 599,796,970 | pry |
| 102 | 455,980,224 | byebug |
| 184 | 273,712,421 | pry-byebug |
| 186 | 270,718,732 | rubocop-rspec |
| 195 | 257,833,922 | timecop |
| 311 | 160,475,438 | colorize |
| 943 | 52,297,299 | resque |
| 1,575 | 24,180,120 | fakeredis |
| 8,787 | 423,166 | rspec-block_is_expected |
| 9,121 | 390,123 | rspec-stubbed_env |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |