Class: Prosopite::Middleware::Sidekiq

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::ServerMiddleware
Defined in:
lib/prosopite/middleware/sidekiq.rb

Instance Method Summary collapse

Instance Method Details

#call(_worker, _msg, _queue) ⇒ Object



6
7
8
9
10
11
# File 'lib/prosopite/middleware/sidekiq.rb', line 6

def call(_worker, _msg, _queue)
  Prosopite.scan
  yield
ensure
  Prosopite.finish
end