All Products
Search
Document Center

Realtime Compute for Apache Flink:Cancel a deployment

Last Updated:Jun 04, 2026

Cancel a running deployment to apply changes to its SQL code, configuration parameters, or version, or to perform a fresh start when the deployment cannot reuse its state.

Prerequisites

  • A running deployment

  • If you share your fully managed Flink service with other Alibaba Cloud accounts or RAM users, grant them the permissions required to cancel a deployment. For details, see Grant permissions in the development console.

Cancel a deployment

  1. Go to the Deployments page.

    1. Log on to the Realtime Compute for Apache Flink console.

    2. Find your workspace and click Console in the Actions column.

  2. On the O&M > Deployments page, find the target deployment and click Cancel in the Actions column.

    Configure the cancellation options as needed:

    • Create a savepoint before canceling: Click More Strategies and select Create a savepoint before canceling to take a savepoint before cancellation starts. If you select Create a savepoint before canceling, the deployment first creates a savepoint and then starts the cancellation process. If you do not select Create a savepoint before canceling, the deployment directly starts the cancellation process.

    • Stop With Drain: Permanently terminates the deployment by emitting a final watermark that flushes all in-flight event-time state before shutdown. For details, see the Apache Flink documentation on drain.

      Important

      Do not select this option if you plan to restart the deployment. Restarting a drained deployment may cause errors.

  3. Click OK.

Usage notes

While a deployment is running, the system retains only the latest checkpoint. Canceling a deployment does not delete this checkpoint.