class SidekiqSquash::Middleware

This is a middleware for reporting exception occurred within sidekiq workers.

Public Instance Methods

call(worker, msg, queue) { || ... } click to toggle source
# File lib/sidekiq_squash/middleware.rb, line 6
def call(worker, msg, queue)
  begin
    yield
  rescue => e
    Squash::Ruby.notify(e, parameters: msg)
    raise
  end
end