Sha256: ace3b6fb2db235babfdf236ae49a69f1da737f0b227c38ae6175f222a276a622
Contents?: true
Size: 489 Bytes
Versions: 13
Compression:
Stored size: 489 Bytes
Contents
module RorVsWild module Plugin class Sidekiq def self.setup if defined?(::Sidekiq) ::Sidekiq.configure_server do |config| config.server_middleware { |chain| chain.add(Sidekiq) } end end end def call(worker, item, queue, &block) # Wrapped contains the real class name of the ActiveJob wrapper RorVsWild.measure_block(item["wrapped".freeze] || item["class".freeze], &block) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems