Freeze or restore task flows

更新时间:
复制 MD 格式

When a task flow is frozen, its scheduled triggers cannot run. Tasks that are not scheduled by an event fail immediately. Task flows that are scheduled by an event enter a pending state. This applies to all scheduling operations, such as data backfills, reruns, and resumed tasks. This topic describes how to freeze and restore task flows.

Prerequisites

The user who freezes or restores a task flow must be its owner or related personnel. For more information about how to set the owner or related personnel for a task flow, see Configure a task flow.

Scenarios

  • If an upstream task flow A is abnormal, you can freeze the downstream task flow B. If there are multiple downstream task flows, you can freeze them in a batch. Task flow B does not run, but its dependencies are preserved.

    After task flow A returns to normal, you can restore task flow B. It then runs as scheduled.

  • If cluster compute resources are insufficient, you may need to prioritize certain task flows. You can freeze other non-critical downstream task flows. After the important task flows finish running, you can restore the frozen ones.

Notes

  • When you freeze a time-scheduled task flow, a failed run record is generated.

  • When you freeze an event-scheduled task flow, a frozen task flow instance is generated. DMS lets you freeze pending task flow instances that are generated by event-based scheduling.

Procedures

Method 1: Freeze or restore a task flow on its details page

  1. Log in to DMS 5.0.

  2. Move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > Data+AI > Data Development > Task Orchestration.

    Note

    If you use the DMS console in normal mode, choose Data+AI > Data Development > Task Orchestration in the top navigation bar.

  3. In the Task Flows section at the bottom of the page, click the name of the target task flow to go to its details page.

  4. At the top of the page, click Freeze and then click Confirm.

    After the task flow is frozen, its status on the Task Orchestration home page changes to Frozen.

    Note

    To resume the scheduled execution of the task flow, click Restore at the top of the task flow's details page.

Method 2: Freeze or restore task flows in the Task Orchestration Operation Center

  1. Log in to DMS 5.0.

  2. Move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All Features > O&M > Task Orchestration Operation Center.

    Note

    If you use the DMS console in normal mode, choose O&M > Task Orchestration Operation Center in the top navigation bar.

  3. Click the Task Flow Management tab.

  4. In the task flow list, find the target task flow and select its checkbox. Then, click Freeze or Restore at the bottom of the page.

    Alternatively, click Edit in the row of the target task flow to go to its details page and freeze or restore it.

  5. In the Batch Freeze or Batch Restore dialog box that appears, click Confirm.

    Note
    • After a task flow is successfully frozen, the image icon appears to the right of its name.

    • In the Batch Restore confirmation dialog box, you can choose to restore the task flow instances (specific run records of the task flow) immediately or at a specified time.