Class: Fractor::Workflow::NoRetry
- Inherits:
-
RetryStrategy
- Object
- RetryStrategy
- Fractor::Workflow::NoRetry
- Defined in:
- lib/fractor/workflow/retry_strategy.rb
Overview
No retry strategy
Instance Attribute Summary
Attributes inherited from RetryStrategy
Instance Method Summary collapse
- #delay_for(_attempt) ⇒ Object
-
#initialize ⇒ NoRetry
constructor
A new instance of NoRetry.
Constructor Details
#initialize ⇒ NoRetry
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 |