Cancel, Stop, or Delete a Deployment
Several actions may necessitate cancelling, stopping, or deleting a deployment. For example:
- Modifying the SQL code for a deployment
- Additing or deleting parameters to or from the WITH clause
- Changing the version of a deployment
- A deployment fails and cannot reuse the state data to recover
- You no longer need a deployment
Cancel or Stop a Deployment
note
The system retains only the latest checkpoint when a deployment is running. When the deployment is canceled, the system does not automatically delete the checkpoint.
- Ensure the deployment is running.
- In the left navigation, click the Namespace selector and select the namespace that you want to open.
- Click Deployments.
- On the Deployments page, click Cancel in the deployment's Actions column.
- Click OK to confirm.
While the deployment is canceling, the status displays in the console.
Advanced Stop Strategies
When you cancel a deployment, you can choose advanced strategies to manage the job's state:
- Stop with Savepoint: Select this to create a savepoint before the deployment stops. This allows you to resume the job from this exact point later.
- In the Cancel this deployment dialog, click More Strategies.
- Select Stop with Savepoint.
- Click OK.
- Stop with Drain: Use this to permanently terminate a job while ensuring all records in flight are processed.
- In the Cancel this deployment dialog, click More Strategies.
- Select Stop with Drain.
- Click OK.
caution
Do not use Stop with Drain if you intend to restart the deployment later from its current state, as it might lead to errors upon resumption.
Delete a Deployment
If you no longer need a deployment, you can delete it.
- Ensure the deployment is not running. After it has stopped completely, the associated data will be deleted along with it.
- In the left navigation, click the Namespace selector and select the namespace that you want to open.
- Click Deployments.
- On the Deployments page, click Delete in the deployment's Actions column.
- Click OK.