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,506 of 187,321
Downloads: 81,524
Daily
Ranking: 9,069 of 187,305
Downloads: 138
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
30,885 | 41,712 | resque-unique_by_arity |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 1,154,737,843 | rake |
27 | 920,656,256 | rspec |
57 | 606,221,303 | rubocop |
73 | 552,597,015 | pry |
99 | 422,055,732 | byebug |
174 | 255,619,169 | pry-byebug |
186 | 240,638,254 | rubocop-rspec |
193 | 238,201,343 | timecop |
294 | 150,884,617 | colorize |
935 | 48,712,591 | resque |
1,548 | 22,566,092 | fakeredis |
9,454 | 323,014 | rspec-stubbed_env |
10,234 | 272,956 | rspec-block_is_expected |
Owners
# | Gravatar | Handle |
---|---|---|
1 | pboling |