Class: SidekiqRemappableErrors::SidekiqMiddleware
- Inherits:
-
Object
- Object
- SidekiqRemappableErrors::SidekiqMiddleware
- Defined in:
- lib/sidekiq_remappable_errors/sidekiq_middleware.rb
Instance Method Summary collapse
Instance Method Details
#call(worker, job, _queue) ⇒ Object
5 6 7 8 |
# File 'lib/sidekiq_remappable_errors/sidekiq_middleware.rb', line 5 def call(worker, job, _queue) worker.retry_count = job['retry_count'] if worker.respond_to?(:retry_count=) yield end |