Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
Documentation
data RetryStrategy Source #
The retry strategy that's associated with a job. For more information, see Automated job retries in the Batch User Guide.
See: newRetryStrategy
smart constructor.
RetryStrategy' | |
|
Instances
newRetryStrategy :: RetryStrategy Source #
Create a value of RetryStrategy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attempts:RetryStrategy'
, retryStrategy_attempts
- The number of times to move a job to the RUNNABLE
status. You can
specify between 1 and 10 attempts. If the value of attempts
is greater
than one, the job is retried on failure the same number of attempts as
the value.
$sel:evaluateOnExit:RetryStrategy'
, retryStrategy_evaluateOnExit
- Array of up to 5 objects that specify the conditions where jobs are
retried or failed. If this parameter is specified, then the attempts
parameter must also be specified. If none of the listed conditions
match, then the job is retried.
retryStrategy_attempts :: Lens' RetryStrategy (Maybe Int) Source #
The number of times to move a job to the RUNNABLE
status. You can
specify between 1 and 10 attempts. If the value of attempts
is greater
than one, the job is retried on failure the same number of attempts as
the value.
retryStrategy_evaluateOnExit :: Lens' RetryStrategy (Maybe [EvaluateOnExit]) Source #
Array of up to 5 objects that specify the conditions where jobs are
retried or failed. If this parameter is specified, then the attempts
parameter must also be specified. If none of the listed conditions
match, then the job is retried.