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,859 of 186,959
Downloads: 77,729
Daily
Ranking: 11,218 of 186,713
Downloads: 114
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
31,026 | 40,532 | resque-unique_by_arity |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 1,128,098,871 | rake |
27 | 909,387,510 | rspec |
57 | 589,619,268 | rubocop |
71 | 542,757,863 | pry |
98 | 414,508,575 | byebug |
171 | 251,488,314 | pry-byebug |
187 | 234,324,293 | rubocop-rspec |
188 | 234,305,318 | timecop |
292 | 148,814,455 | colorize |
934 | 48,016,426 | resque |
1,546 | 22,231,371 | fakeredis |
9,679 | 300,375 | rspec-stubbed_env |
10,870 | 234,102 | rspec-block_is_expected |
Owners
# | Gravatar | Handle |
---|---|---|
1 | pboling |