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,211 of 188,166
Downloads: 85,312
Daily
Ranking: 16,596 of 188,156
Downloads: 50
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,822 | 42,542 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 10 | 1,185,493,393 | rake |
| 29 | 933,893,121 | rspec |
| 57 | 625,997,038 | rubocop |
| 74 | 563,406,970 | pry |
| 100 | 430,268,164 | byebug |
| 176 | 259,809,426 | pry-byebug |
| 189 | 247,447,058 | rubocop-rspec |
| 192 | 242,553,429 | timecop |
| 298 | 153,304,603 | colorize |
| 935 | 49,514,612 | resque |
| 1,551 | 23,029,491 | fakeredis |
| 9,233 | 346,319 | rspec-stubbed_env |
| 9,803 | 307,198 | rspec-block_is_expected |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |