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
Log in to DMS 5.0.
-
Move the pointer over the
icon in the upper-left corner and choose . NoteIf you use the DMS console in normal mode, choose in the top navigation bar.
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.
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.
NoteTo 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
Log in to DMS 5.0.
-
Move the pointer over the
icon in the upper-left corner and choose . NoteIf you use the DMS console in normal mode, choose in the top navigation bar.
Click the Task Flow Management tab.
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.
In the Batch Freeze or Batch Restore dialog box that appears, click Confirm.
NoteAfter a task flow is successfully frozen, the
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.