Class: Errplane::Sidekiq

Inherits:
Object
  • Object
show all
Defined in:
lib/errplane/sidekiq.rb

Instance Method Summary collapse

Instance Method Details

#call(worker, msg, queue) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/errplane/sidekiq.rb', line 3

def call(worker, msg, queue)
  begin
    yield
  rescue => e
    Errplane.transmit_unless_ignorable(e, :custom_data => {:sidekiq => msg })
    raise(e)
  end
end