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,723 of 186,974
Downloads: 79,308
Daily
Ranking: 17,238 of 186,960
Downloads: 36
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
30,986 | 41,054 | resque-unique_by_arity |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 1,140,919,622 | rake |
27 | 914,604,077 | rspec |
57 | 597,190,900 | rubocop |
72 | 547,361,915 | pry |
98 | 418,120,279 | byebug |
173 | 253,456,252 | pry-byebug |
186 | 237,284,100 | rubocop-rspec |
189 | 236,092,114 | timecop |
292 | 149,769,008 | colorize |
934 | 48,340,416 | resque |
1,547 | 22,386,296 | fakeredis |
9,525 | 314,372 | rspec-stubbed_env |
10,478 | 255,294 | rspec-block_is_expected |
Owners
# | Gravatar | Handle |
---|---|---|
1 | pboling |