Struct aws_sdk_batch::model::RetryStrategy
source · [−]#[non_exhaustive]pub struct RetryStrategy {
pub attempts: i32,
pub evaluate_on_exit: Option<Vec<EvaluateOnExit>>,
}
Expand description
The retry strategy associated with a job. For more information, see Automated job retries in the Batch User Guide.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attempts: i32
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.
evaluate_on_exit: Option<Vec<EvaluateOnExit>>
Array of up to 5 objects that specify conditions under which the job should be retried or failed. If this parameter is specified, then the attempts
parameter must also be specified.
Implementations
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.
Array of up to 5 objects that specify conditions under which the job should be retried or failed. If this parameter is specified, then the attempts
parameter must also be specified.
Creates a new builder-style object to manufacture RetryStrategy
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RetryStrategy
impl Send for RetryStrategy
impl Sync for RetryStrategy
impl Unpin for RetryStrategy
impl UnwindSafe for RetryStrategy
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more