Class CfnJobDefinition.RetryStrategyProperty
The retry strategy that's associated with a job.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RetryStrategyProperty : Object, CfnJobDefinition.IRetryStrategyProperty
Syntax (vb)
Public Class RetryStrategyProperty
Inherits Object
Implements CfnJobDefinition.IRetryStrategyProperty
Remarks
For more information, see Automated job retries in the AWS Batch User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var retryStrategyProperty = new RetryStrategyProperty {
Attempts = 123,
EvaluateOnExit = new [] { new EvaluateOnExitProperty {
Action = "action",
// the properties below are optional
OnExitCode = "onExitCode",
OnReason = "onReason",
OnStatusReason = "onStatusReason"
} }
};
Synopsis
Constructors
RetryStrategyProperty() |
Properties
Attempts | The number of times to move a job to the |
EvaluateOnExit | Array of up to 5 objects that specify the conditions where jobs are retried or failed. |
Constructors
RetryStrategyProperty()
public RetryStrategyProperty()
Properties
Attempts
The number of times to move a job to the RUNNABLE
status.
public Nullable<double> Attempts { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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.
EvaluateOnExit
Array of up to 5 objects that specify the conditions where jobs are retried or failed.
public object EvaluateOnExit { get; set; }
Property Value
System.Object
Remarks
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.