Canceling a Pipeline Run

Follow these steps to cancel a pipeline run.

Graceful Pipeline Termination

Pipelines enhance the cancel run method by introducing an optional parameter, terminateGracefully.

You can stop a pipeline run from any step without triggering errors or failures. Both the step and pipeline runs conclude in the 'succeeded' state. This functionality proves useful when a step logic identifies the next step as unnecessary or invalid, prompting the ending of the pipeline run. For example, if a transformation step detects insufficient or poor-quality data, the pipeline run can be stopped before proceeding to model training and deployment.

This starts custom logic within a pipeline run to halt execution and flag the run as SUCCEEDED. This distinction is crucial for monitoring purposes, enabling the differentiation between willingly ended runs and those canceled by the service, for example, because of resource limitations.