Cancel steps when you submit work to an Amazon EMR cluster
You can cancel pending and running steps from the AWS Management Console, the AWS CLI, or the Amazon EMR, when you submit work to your cluster. API.
Considerations for canceling steps
-
Canceling a running or pending step removes that step from the active step count.
-
Canceling a running step does not allow a pending step to start running, assuming no change to
stepConcurrencyLevel
. -
Canceling a running step does not trigger the step
ActionOnFailure
. -
For EMR 5.32.0 and later,
SEND_INTERRUPT StepCancellationOption
sends aSIGTERM
signal to the step child process. You should watch for this signal and do a cleanup and shutdown gracefully. TheTERMINATE_PROCESS StepCancellationOption
sends aSIGKILL
signal to the step child process and all of its descendant processes; however, asynchronous processes are not affected.