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,243 of 183,501
Downloads: 70,010
Daily
Ranking: 27,573 of 183,494
Downloads: 6
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
30,538 | 38,910 | resque-unique_by_arity |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 970,092,883 | rake |
25 | 825,534,096 | rspec |
62 | 485,460,157 | rubocop |
69 | 473,824,100 | pry |
94 | 362,320,269 | byebug |
168 | 218,232,346 | pry-byebug |
174 | 212,193,654 | timecop |
196 | 188,029,469 | rubocop-rspec |
272 | 136,351,101 | colorize |
881 | 44,634,108 | resque |
1,472 | 20,165,560 | fakeredis |
12,594 | 157,050 | rspec-stubbed_env |
24,758 | 52,173 | rspec-block_is_expected |
Owners
# | Gravatar | Handle |
---|---|---|
1 | pboling |