Class: Fractor::Workflow::NoRetry

Inherits:
RetryStrategy show all
Defined in:
lib/fractor/workflow/retry_strategy.rb

Overview

No retry strategy

Instance Attribute Summary

Attributes inherited from RetryStrategy

#max_attempts, #max_delay

Instance Method Summary collapse

Constructor Details

#initializeNoRetry

Returns a new instance of NoRetry.



84
85
86
# File 'lib/fractor/workflow/retry_strategy.rb', line 84

def initialize
  super(max_attempts: 1)
end

Instance Method Details

#delay_for(_attempt) ⇒ Object



88
89
90
# File 'lib/fractor/workflow/retry_strategy.rb', line 88

def delay_for(_attempt)
  0
end