class Sidekiq::Notifications::ServerMiddleware

Public Instance Methods

call(worker, job, queue) { || ... } click to toggle source
# File lib/sidekiq/notifications/server_middleware.rb, line 6
def call(worker, job, queue)
   ActiveSupport::Notifications.instrument('app.worker.perform', title: "#{worker.class.to_s}#perform", job: job) do
    yield
  end
end