Class: BunnyCarrot::Strategy::RestartAndBlock

Inherits:
Base
  • Object
show all
Defined in:
lib/bunny_carrot/strategy/restart_and_block.rb

Direct Known Subclasses

RestartAndDrop

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Logger

included, #logger

Constructor Details

This class inherits a constructor from BunnyCarrot::Strategy::Base

Instance Method Details

#performObject



5
6
7
8
9
10
11
# File 'lib/bunny_carrot/strategy/restart_and_block.rb', line 5

def perform
  if restart_attempts_left?
    logger.info "Requeuing with attempt: #{@restart_attempt}"
    acknowledge
    publish
  end
end