All Products
Search
Document Center

PolarDB:Scheduled task

Last Updated:Mar 15, 2024

When you perform operations and management (O&M) tasks, you can customize the execution time of the tasks. For example, you can customize the execution time of tasks for upgrading a cluster, adding nodes, upgrading versions, or changing the primary zone. This topic describes how to view or cancel a scheduled task in the console after you create the task.

Precautions

  • You can view the details of only the following scheduled tasks:

  • You can cancel only the tasks whose Status is Pending. Scheduled tasks for downgrade operations such as node deletion and automatic or manual downgrade cannot be canceled.

  • If you have questions about scheduled tasks, join the DingTalk group for consultation. The experts in the group can answer your questions. You can also use the chatbot assistant for PolarDB for MySQL in the group that provides 24/7 support. DingTalk group number: 51685000218.

View scheduled tasks

  1. Log on to the PolarDB console.

  2. In the top navigation bar, select the region in which the cluster that you want to manage is deployed.

  3. In the left-side navigation pane, click Scheduled Tasks.

  4. On the Scheduled Tasks page, you can view the details about all scheduled tasks in the region, such as the Task ID, Status, Task Action, Start Time, End Time, and Execution Time.

    1

    Note
    • The API of the task is displayed in the Task Action column. The following Task Action are supported:

      • ModifyDBClusterPrimaryZone: changes the primary zone.

      • ModifyDBNodeClass: upgrades a cluster.

      • CreateDBNodes: adds nodes.

      • UpgradeDBClusterVersion: upgrades the version of a cluster.

    • You can view the Order ID of the cluster only when Task Action is ModifyDBNodeClass or CreateDBNodes.

Cancel a scheduled task

  1. Log on to the PolarDB console.

  2. In the top navigation bar, select the region in which the cluster that you want to manage is deployed.

  3. In the left-side navigation pane, click Scheduled Tasks.

  4. On the Scheduled Tasks page, find the scheduled task that you want to cancel, and click Cancel in the Actions column.

    Note

    You can cancel only the tasks whose Status is Pending. Scheduled tasks for downgrade operations such as node deletion and automatic or manual downgrade cannot be canceled.

  5. In the message that appears, click OK.

Related API operation

API

Description

DescribeScheduleTasks

Queries the details of all scheduled tasks or a specified scheduled task that belongs to the current account.

CancelScheduleTasks

Cancels a specified scheduled task.