Class: Aws::Batch::Types::RetryStrategy
- Inherits:
-
Struct
- Object
- Struct
- Aws::Batch::Types::RetryStrategy
- Defined in:
- gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb
Overview
Note:
When making an API call, you may pass RetryStrategy data as a hash:
{
attempts: 1,
evaluate_on_exit: [
{
on_status_reason: "String",
on_reason: "String",
on_exit_code: "String",
action: "RETRY", # required, accepts RETRY, EXIT
},
],
}
The retry strategy associated with a job. For more information, see Automated job retries in the Batch User Guide.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#attempts ⇒ Integer
The number of times to move a job to the
RUNNABLE
status. -
#evaluate_on_exit ⇒ Array<Types::EvaluateOnExit>
Array of up to 5 objects that specify conditions under which the job should be retried or failed.
Instance Attribute Details
#attempts ⇒ Integer
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.
5614 5615 5616 5617 5618 5619 |
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 5614 class RetryStrategy < Struct.new( :attempts, :evaluate_on_exit) SENSITIVE = [] include Aws::Structure end |
#evaluate_on_exit ⇒ Array<Types::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.
5614 5615 5616 5617 5618 5619 |
# File 'gems/aws-sdk-batch/lib/aws-sdk-batch/types.rb', line 5614 class RetryStrategy < Struct.new( :attempts, :evaluate_on_exit) SENSITIVE = [] include Aws::Structure end |