enum ActionOnFailure
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.ActionOnFailure |
Java | software.amazon.awscdk.services.stepfunctions.tasks.ActionOnFailure |
Python | aws_cdk.aws_stepfunctions_tasks.ActionOnFailure |
TypeScript (source) | @aws-cdk/aws-stepfunctions-tasks » ActionOnFailure |
The action to take when the cluster step fails.
See also: [https://docs.aws.amazon.com/emr/latest/APIReference/API_StepConfig.html
Here, they are named as TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE respectively.](https://docs.aws.amazon.com/emr/latest/APIReference/API_StepConfig.html
Here, they are named as TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE respectively.)
Example
new tasks.EmrAddStep(this, 'Task', {
clusterId: 'ClusterId',
name: 'StepName',
jar: 'Jar',
actionOnFailure: tasks.ActionOnFailure.CONTINUE,
});
Members
Name | Description |
---|---|
TERMINATE_CLUSTER | Terminate the Cluster on Step Failure. |
CANCEL_AND_WAIT | Cancel Step execution and enter WAITING state. |
CONTINUE | Continue to the next Step. |
TERMINATE_CLUSTER
Terminate the Cluster on Step Failure.
CANCEL_AND_WAIT
Cancel Step execution and enter WAITING state.
CONTINUE
Continue to the next Step.