Canceling steps
You can cancel pending and running steps from the AWS Management Console, the AWS CLI, or the Amazon EMR API.
Note
We’ve redesigned the Amazon EMR console to make it easier to use. See Amazon EMR console to learn about the differences between the old and new console experiences.
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.