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: 17,894 of 193,756
Downloads: 104,278
Daily
Ranking: 9,081 of 193,649
Downloads: 147
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 30,912 | 45,122 | resque-unique_by_arity |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 8 | 1,345,947,699 | rake |
| 29 | 989,540,006 | rspec |
| 56 | 705,297,141 | rubocop |
| 71 | 610,500,117 | pry |
| 104 | 463,553,964 | byebug |
| 185 | 278,334,013 | rubocop-rspec |
| 186 | 277,976,930 | pry-byebug |
| 197 | 262,541,810 | timecop |
| 318 | 162,759,214 | colorize |
| 947 | 53,045,019 | resque |
| 1,583 | 24,576,577 | fakeredis |
| 8,565 | 473,111 | rspec-block_is_expected |
| 8,974 | 427,413 | rspec-stubbed_env |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | pboling |