You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Batch::Types::RetryStrategy

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing RetryStrategy as input to an Aws::Client method, you can use a vanilla 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.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#attemptsInteger

The number of times to move a job to the RUNNABLE status. You may 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.

Returns:

  • (Integer)

    The number of times to move a job to the RUNNABLE status.

#evaluate_on_exitArray<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.

Returns:

  • (Array<Types::EvaluateOnExit>)

    Array of up to 5 objects that specify conditions under which the job should be retried or failed.