Scheduled tasks let you control when certain operations and maintenance (O&M) operations run on your PolarDB cluster—such as upgrading specifications, adding nodes, updating the cluster version, or changing the primary zone. This topic explains how to view and cancel scheduled tasks in the PolarDB console.
Supported task types
You can view the details of only the following scheduled tasks:
| Task type | Reference |
|---|---|
| Upgrade the specifications of a cluster | Manually change the specifications of a cluster |
| Add cluster nodes | Add a read-only node |
| Update the version of a cluster | Minor version updates |
| Change the primary zone | Manually change the primary or secondary zone |
| Enable binary logging | Enable binary logging |
View scheduled tasks
Log on to the PolarDB console.
In the left-side navigation pane, click Clusters.
In the upper-left corner, select the region where the cluster is deployed.
In the left-side navigation pane, choose Scheduled Tasks.
On the Scheduled Tasks page, view the details of all scheduled tasks in the region. The page displays the following fields: The Task Action column shows the API name of the operation. The following values are supported:
Field Description Task ID Unique identifier for the scheduled task. Status Current state of the task. Pending tasks have not started and can be canceled. Tasks in other states cannot be canceled. Task Action The API name of the operation. See the table below for supported values. Start Time The time when the task was created. End Time The time when the task completed or was canceled. Execution Time The scheduled time for the task to run. Order ID Visible only when Task Action is ModifyDBNodeClass or CreateDBNodes. Task Action value Operation ModifyDBClusterPrimaryZone Changes the primary zone. ModifyDBNodeClass Upgrades a cluster. CreateDBNodes Adds cluster nodes. UpgradeDBClusterVersion Updates the version of a cluster. 
Cancel a scheduled task
Only tasks with a Status of Pending can be canceled. Downgrade-related tasks—including node deletion, automatic downgrade, and manual downgrade—cannot be canceled.
Log on to the PolarDB console.
In the left-side navigation pane, click Clusters.
In the upper-left corner, select the region where the cluster is deployed.
In the left-side navigation pane, choose Scheduled Tasks.
On the Scheduled Tasks page, find the task you want to cancel and click Cancel in the Actions column.
Only tasks with a Status of Pending can be canceled.
In the dialog box that appears, click OK.
API reference
| API | Description |
|---|---|
| DescribeScheduleTasks | Queries all scheduled tasks or a specific scheduled task under the current account. |
| CancelScheduleTasks | Cancels specified scheduled tasks. |