class Rusen::Middleware::RusenSidekiq
Intersect exceptions that happens on inside
sidekiq workers. If an exception occurred on a worker Rusen will notify about that exception and will raised up.
Public Instance Methods
call(_, _, _) { || ... }
click to toggle source
Just yield the block and rescue from any
exception that occurred on the call to the worker, and notify about that exception.
@raise [Exception] if an exception occurred
that exception was notified and raised again to allow the retry to happen.
# File lib/rusen/middleware/rusen_sidekiq.rb, line 22 def call(_, _, _, &block) yield rescue => error Rusen.notify(error) raise end