Class: Upperkut::Middlewares::Rollbar

Inherits:
Object
  • Object
show all
Defined in:
lib/upperkut/middlewares/rollbar.rb

Instance Method Summary collapse

Instance Method Details

#call(worker, items) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/upperkut/middlewares/rollbar.rb', line 4

def call(worker, items)
  ::Rollbar.reset_notifier!
  yield
rescue Exception => e
  handle_exception(e, worker, items)
  raise e
end