Sha256: 085abc08919b5c614667fc444ad76868af8171a9bea7d404f9750785aeea1ae5
Contents?: true
Size: 538 Bytes
Versions: 1
Compression:
Stored size: 538 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) return end @processor.complete(worker, msg, queue, return_value) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekiq_monitor-0.0.1 | lib/sidekiq/monitor/server/middleware.rb |