Manage integration and computing task instances
A recurrent integration and computing task generates an instance when it runs at its scheduled time. You can then perform O&M operations on these instances, such as viewing the run log, rerunning the instance, forcing a rerun of the current instance or its upstream and downstream instances, and viewing the node code. This topic explains how to manage these instances.
Prerequisites
To view the Gantt chart, you must purchase the Intelligent O&M value-added service and enable the Intelligent O&M module for the current tenant.
Integration and computing task instances page
-
In the top navigation bar of the Dataphin homepage, choose Develop > Task O&M.
-
In the left-side navigation pane, choose Instance O&M > Recurrence Instances.
-
In the top menu bar, select the production or development environment.
-
On the Recurrence Instances page, click the Integration and Computing Tasks tab.
Instance list operations
After a recurrent integration and computing task generates an instance, the instance appears in the list on the Recurrence Instances > Integration and Computing Tasks tab. The list includes the following information: Instance object, Instance ID, Directory, Running status, Scheduling cycle, Business date, Scheduled time, Start time, End time, Duration, Retries/Auto retries, Priority, O&M engineer, Project, Related baseline instance, Scheduling resource group, Tag, and available Actions.
-
Instance object: An object generated when a recurrent task runs. This field displays the name and ID of the instance object and indicates the task's scheduling method. You can click the
icon next to the column name to sort by object name in ascending or descending order. For more information, see Description of recurrent instance markers. -
Directory: A snapshot of the task directory when the instance was generated. This information is not updated if the task directory changes. This field is displayed only for instances generated after an upgrade to Dataphin V6.2. If you attempt to perform an operation on an instance in a directory for which you do not have permissions, an error occurs.
-
Running status: The current running status of the instance. The available statuses include: Success, Failed, Running, Waiting for Scheduling Time, Throttling, Waiting for Scheduling Resources, and Not Run. For details about each status, see Description of recurrent instance running statuses.
-
Start time: The time when the instance started to run. Click the
icon next to the column name to sort by start time in ascending or descending order.NoteFor a logical table node, the start time is when the instance object's earliest internal materialized node started to run.
-
End time: The time when the instance finished running. Click the
icon next to the column name to sort by end time in ascending or descending order.NoteFor a logical table node, the end time is when the instance object's latest internal materialized node finished running.
-
Retries/Auto retries: The number of manual and automatic retries for the instance. The number of manual retries is calculated using the following formula:
Number of retries = Number of runs - 1. -
Duration: The total time from when the instance started to when it finished. Click the
icon next to the column name to sort by duration in ascending or descending order.NoteFor a logical table node, the duration is the time elapsed from the start of the earliest internal materialized node to the end of the latest one within the instance object.
-
Priority: The priority level of the instance.
NoteA baseline task's priority is set to the highest priority among its associated baselines, overriding the original task configuration.
-
Project: The project that contains the task, displayed in the
Project English Name (Project Chinese Name)format. -
Related baseline instance: Lists the baseline that protects this instance as an endpoint node, as well as other baselines that include this instance as an upstream node.
NoteThis field appears only when the baseline feature is enabled.
-
Scheduling resource group: The name of the scheduling resource group used to run the instance.
If the task's custom resource group is unavailable, the system uses the project's default resource group. If that is also unavailable, it falls back to the tenant's default resource group. The priority order is custom resource group > project default resource group > tenant default resource group.
NoteThis display may not immediately reflect the update. However, the new resource group is used for actual execution.
Tenant default resource group: This resource group does not belong to any project. Each Dataphin instance has only one default resource group. If a task does not have a custom resource group and the project does not have a default resource group, the system uses the tenant's default resource group for scheduling.
The following table describes the operations available for integration and computing task instances.
|
Actions |
Description |
|
DAG |
Click the |
|
View run log |
Click the |
|
Rerun |
Click the If your use case requires a rerun, you can perform a force rerun. |
|
View Gantt Chart |
Click the
For more information about the Gantt chart, see View critical path Gantt chart. |
|
Download upstream and downstream nodes |
Downloads a list of the upstream and downstream nodes for the current node. The list includes all columns, including those not displayed in the UI. After you click Download upstream and downstream nodes, in the Download upstream and downstream nodes dialog box, select the levels for the upstream and downstream nodes. You can choose from Level 1 to Level 10 or All levels. The default for both is Level 1. After selecting the levels, click OK to start downloading the Excel file. The file is named |
|
View node code |
Click the Logical code: The code written for the task. Physical code: The compiled code that runs on the Flink engine. |
|
Recurrence task |
Click the |
|
Edit development node |
Click the Note
This operation is available only for integration and computing task instances in Dev-Prod mode project spaces. |
|
View production node |
Click the Note
This operation is available only for integration and computing task instances in Dev-Prod mode project spaces. |
|
Edit node |
Click the Note
This operation is supported only for integration and computing task instances in Basic mode project spaces. |
|
Rerun upstream and downstream |
Click the If you need to perform an end-to-end rerun, we recommend using Force rerun upstream and downstream instances. For more information, see Force rerun upstream and downstream instances. This operation is often used in the following scenarios:
|
|
Set to success and continue scheduling |
Click the |
|
Terminate |
Click the Note
You cannot terminate an instance that is in the Success, Failed, or Not Run state. Instances in all other states can be terminated. This operation is often used in the following scenarios:
|
|
Force rerun |
Click the
Important
A force rerun does not verify whether all upstream nodes have run successfully or if the current instance's scheduled start time has been reached. This creates a risk of run failures or data quality issues. Confirm that there will be no impact on downstream data before proceeding. |
|
Remove upstream dependencies |
Click the Important
You must keep at least one upstream instance. |
|
Suspend |
Click the Note
|
|
Resume |
Click the |
|
Modify scheduling resource group |
Click the Note
|
|
Modify priority |
Click the |
DAG node operations
The DAG clearly visualizes the upstream and downstream dependencies of instance nodes and lets you manage these nodes. By default, the DAG displays the main node (the selected node) and its first-level upstream and downstream nodes. You can select an integration and computing task instance node to perform related O&M operations.
Dataphin supports the management of instance nodes across projects. To perform O&M operations on a cross-project instance node, you must have view and operation permissions for the project where the instance is located.
-
DAG operations
Actions
Description
Expand parent nodes
Expands different levels of dependent nodes for the main node in the DAG.
Expand child nodes
View task
Navigates to the task node DAG for the task that generated the current instance node. You can view task node details, upstream and downstream information, and manage the task node. For more information, see Recurrence Task.
View operation logs
Views the log of operations performed on this instance.
-
DAG node operations
Hover over a node in the DAG to view its name, type, scheduling cycle, O&M engineer, and description. The operations available for nodes in the DAG are the same as those available in the instance list. For more information, see Operations in the integration and computing task instance list.
Bulk operations
The following table describes the bulk operations supported for recurrent integration and computing tasks.
|
Actions |
Description |
|
Rerun |
|
|
Terminate |
|
|
Set to success and continue scheduling |
You can manually set the selected instances that are in the Failed or Not Run state to Success, allowing scheduling to continue. |
|
Suspend |
You can bulk suspend instances in any running state.
|
|
Resume |
Bulk resume recurrent instances that are Suspended. |
|
Modify scheduling resource group |
You can modify the scheduling resource group used to run the instances. Note
|
|
Modify priority |
Bulk modify the priority of the selected instances. You can select Highest, High, Medium, Low, or Lowest. |
|
Download all |
Downloads data for all recurrent instances, including integration, computing, and modeling task instances. This action submits a download task that generates the file asynchronously. When ready, the file is automatically downloaded to your local computer. The file is in .xlsx format and named The downloaded file includes the following information: Instance Object, Instance ID, Running Status, Scheduling Cycle, Business Date, Priority, O&M Engineer, Project (for summary logical tables, multiple projects are separated by commas), Scheduled Time, Start Time, End Time, Duration, Retries/Auto Retries, Related Baseline Instance (baseline names are separated by commas), and Scheduling Resource Group (this parameter is empty for modeling task instances). |
Rerun upstream and downstream nodes
-
In the Rerun Upstream and Downstream dialog box, configure the parameters.
NoteYou can only rerun instances that are in the Success or Failed state. After confirmation, the selected instances are first reset to the Not Run state and then rerun based on their dependencies.
Instances that are in a Waiting or Running state cannot be rerun, which may cause data inconsistencies. If you need to perform an end-to-end rerun, we recommend using Force Rerun Upstream and Downstream Instances. For more information, see Force rerun upstream and downstream instances.
Parameter
Description
Starting node running mode
Defines the running mode for the starting node. You can select Dry run or Normal run.
-
Dry run: The instance is marked as Success without actually running. Its run log is empty, the run duration is zero, and no data is processed.
-
Normal run: The instance is scheduled and runs normally.
Rerun scope of upstream and downstream nodes
Select which instances to rerun.
-
All failed instances: The system automatically reruns all upstream and downstream instances that have a Failed status. A specific list of these nodes is not displayed.
-
Custom: Specify the upstream and downstream instances to be rerun. If you select this option, you must configure the Custom rerun scope.
Custom rerun scope
Select the direction of nodes to be rerun. You can select multiple options. This is configurable only when Rerun scope of upstream and downstream nodes is set to Custom. You must specify at least one instance in the selected node list.
-
Upstream instances: Displays the Upstream node list for you to specify which upstream instances to rerun.
-
Downstream instances: Displays the Downstream node list for you to specify which downstream instances to rerun.
In the upstream and downstream node lists, you can search by node name or ID, and filter by running status, O&M engineer, project, or level.
-
-
Click OK.
-
After the rerun, the data for the selected upstream and downstream instance nodes is updated.
Force rerun upstream and downstream instances
-
In the Force Rerun Upstream and Downstream Instances dialog box, configure the parameters.
Parameter
Description
Starting node running mode
Defines the running mode for the starting node. You can select Dry run or Normal run.
-
Dry run: The instance is marked as Success without actually running. Its run log is empty, the run duration is zero, and no data is processed.
-
Normal run: The instance is scheduled and runs normally.
Force rerun scope of upstream and downstream nodes
Select which instances to force-rerun.
-
All instances: Selects all upstream and downstream instance nodes of the starting node for a force rerun. A specific list of these nodes is not displayed.
-
Custom: Specify the upstream and downstream instances to be force-rerun. If you select this option, you must configure the Custom rerun scope.
Custom rerun scope
Select the direction of nodes to be force-rerun. You can select multiple options. This is configurable only when Force rerun scope of upstream and downstream nodes is set to Custom. You must specify at least one instance in the selected node list.
-
Upstream instances: Displays the Upstream node list for you to specify which upstream instances to force-rerun.
-
Downstream instances: Displays the Downstream node list for you to specify which downstream instances to force-rerun.
In the upstream and downstream node lists, if you filter for failed instances, the system selects all instances that match the filter criteria. The default level is 1, which displays only directly adjacent upstream instances. Adjust the level to expand the scope. You can also search by node name or ID and filter by running status, O&M engineer, project, or level.
Note-
A force rerun does not check the status of upstream nodes. Instances in any running state can be force-rerun.
-
After confirmation, the system resets the selected instances to the Not Run state and then force-reruns them according to their dependencies.
-
A full force rerun may consume significant resources and affect other running instances.
-
-
Click OK.