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,308 of 183,107
Downloads: 69,111
Daily
Ranking: 13,399 of 183,092
Downloads: 35
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
30,518 | 38,649 | resque-unique_by_arity |
Depends on
Rank | Downloads | Name |
---|---|---|
10 | 953,844,246 | rake |
25 | 817,849,894 | rspec |
63 | 475,587,280 | rubocop |
68 | 466,913,746 | pry |
94 | 357,037,489 | byebug |
168 | 214,812,247 | pry-byebug |
173 | 209,685,730 | timecop |
197 | 183,546,275 | rubocop-rspec |
271 | 135,014,968 | colorize |
874 | 44,213,537 | resque |
1,458 | 19,857,419 | fakeredis |
12,878 | 148,810 | rspec-stubbed_env |
25,527 | 49,552 | rspec-block_is_expected |
Owners
# | Gravatar | Handle |
---|---|---|
1 | pboling |