Class: Rabbitek::Server::Hooks::Retry
- Inherits:
-
Rabbitek::ServerHook
- Object
- Rabbitek::ServerHook
- Rabbitek::Server::Hooks::Retry
- Includes:
- Loggable
- Defined in:
- lib/rabbitek/server/hooks/retry.rb
Overview
Hook to retry failed jobs
Instance Method Summary collapse
Methods included from Loggable
#debug, #error, #info, #logger, logger, #warn
Instance Method Details
#call(consumer, message) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/rabbitek/server/hooks/retry.rb', line 13 def call(consumer, ) super rescue StandardError (consumer, ) unless consumer.opts[:batch] raise end |