Class: Rabbitek::Server::Hooks::Retry

Inherits:
Rabbitek::ServerHook show all
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, message)
  super
rescue StandardError
  retry_message(consumer, message) unless consumer.opts[:batch]
  raise
end