Skip to main content

Cancel / delete deployment

Cancel deployment

If you modify the SQL code for a deployment, add or delete parameters to or from the WITH clause, or change the version of a deployment, you must deploy the deployment again as a draft (you can directly modify the Jar/Python deployment from the Configuration page), and cancel the deployment, and then restart the deployment to make the changes take effect. If a deployment fails and cannot reuse the state data to recover, you must cancel and then restart the deployment. This section explains how to cancel a deployment.

Prerequisites

  • The deployment is running.

Precautions

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.

Procedure

  1. On the Dashboard page, open the console for the workspace you want to manage.

  2. In the Console navigation pane, click Deployments.

  3. On the Deployments page, click Cancel in the deployment's Actions column.

  4. Click OK to confirm.

While the deployment is canceling, the status will be shown in the console.

You can also:

  • Stop With Savepoint: If you want the system to create a savepoint before the deployment is canceled, you can click More Strategies and select Stop With Savepoint in the Cancel this deployment dialog box. If you select Stop With Savepoint, the system creates a savepoint for the deployment and then the deployment enters the cancel process.

  • Stop With Drain: If you select this option, the deployment is permanently terminated. For more information, see the Drain section.

    caution

    If you want to restart the deployment later, do not select this option. If you select this option, an error may occur when the deployment is resumed.

Delete deployment

If you no longer need a deployment, you can delete it after it has stopped completely and the associated data will be deleted along with it. This section explains how to delete a deployment.

Prerequisites

  • The deployment is not running.

Procedure

  1. On the Dashboard page, open the console for the workspace you want to manage.

  2. In the Console navigation pane, click Deployments.

  3. On the Deployments page, click Delete in the deployment's Actions column.

  4. Click OK.