Sha256: 757179c17117f01881a9d51f73345fed25e2a218c95226b2d2e61d346eca16cf
Contents?: true
Size: 547 Bytes
Versions: 4
Compression:
Stored size: 547 Bytes
Contents
module Sidekiq module Monitor module Server class Middleware def initialize(options=nil) @processor = Monitor::Processor.new end def call(worker, msg, queue) @processor.start(worker, msg, queue) begin return_value = yield rescue Exception => exception @processor.error(worker, msg, queue, exception) raise exception end @processor.complete(worker, msg, queue, return_value) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems