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: 20,205 of 186,155
Downloads: 74,577
Daily
Ranking: 18,003 of 186,141
Downloads: 16
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
30,978 | 40,142 | resque-unique_by_arity |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 1,099,169,755 | rake |
26 | 896,308,465 | rspec |
59 | 571,725,599 | rubocop |
68 | 531,835,206 | pry |
95 | 405,667,158 | byebug |
171 | 246,277,783 | pry-byebug |
185 | 230,322,416 | timecop |
187 | 226,947,543 | rubocop-rspec |
290 | 146,723,664 | colorize |
921 | 47,384,390 | resque |
1,534 | 21,862,084 | fakeredis |
9,961 | 274,753 | rspec-stubbed_env |
12,084 | 186,242 | rspec-block_is_expected |
Owners
# | Gravatar | Handle |
---|---|---|
1 | pboling |