Manage integration and computing task instances

Updated at:

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

  1. In the top navigation bar of the Dataphin homepage, choose Develop > Task O&M.

  2. In the left-side navigation pane, choose Instance O&M > Recurrence Instances.

  3. In the top menu bar, select the production or development environment.

  4. 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 image.png 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 image.png icon next to the column name to sort by start time in ascending or descending order.

    Note

    For 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 image.png icon next to the column name to sort by end time in ascending or descending order.

    Note

    For 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 image.png icon next to the column name to sort by duration in ascending or descending order.

    Note

    For 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.

    Note

    A 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.

    Note

    This 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.

    Note

    This 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 image icon to view the DAG for the recurrent instance. For more information, see Recurrent instance DAG.

View run log

Click the image icon to view the run log for the recurrent instance. The content of the run log varies by instance type.

Rerun

Click the image icon to rerun the recurrent instance. You can only rerun integration and computing task instances that are in the Success or Failed state. When you rerun an instance, the system checks whether all upstream nodes of the instance have a Success status. If the check fails, the instance status immediately changes to Not Run.

If your use case requires a rerun, you can perform a force rerun.

View Gantt Chart

Click the image icon and select View Gantt Chart to open the View Gantt Chart dialog box and configure the following parameters.

  • Set selected node as: You can set the current node as the Start node or End node. If you select Start node, the current node is automatically set in the Start Node field and locked. The same logic applies if you select End node.

  • Start node: Select the start node for the Gantt chart. You can search for nodes by keyword. The selectable nodes are listed in the format of {Node Name}({Node ID, {Instance Scheduled Time}}). When the selected node is set as the End node, the start node defaults to the tenant's root node.

    Note

    Hourly and minute-based tasks have multiple nodes (one node per instance), which are distinguished by the instance's scheduled time.

  • End node: Select the end node for the Gantt chart. You can search for nodes by keyword. The selectable nodes are listed in the format of {Node Name}({Node ID, {Instance Scheduled Time}}).

    Note

    When you select a logical table as the end node, you cannot select specific fields because the system treats the logical table as a single unit.

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 {task_name}_Upstream_and_Downstream_Nodes_{timestamp}.xlsx.

View node code

Click the image icon and select View node code to view the node code for the current instance. For Flink_SQL integration and computing task instances, you can switch between viewing the logical code and the physical code.

Logical code: The code written for the task.

Physical code: The compiled code that runs on the Flink engine.

Recurrence task

Click the image icon and select Recurrence task to view the recurrent task to which the current instance belongs.

Edit development node

Click the image icon and select Edit development node to navigate to the development page for the instance, where you can make changes.

Note

This operation is available only for integration and computing task instances in Dev-Prod mode project spaces.

View production node

Click the image icon and select View production node to navigate to the production page for the instance.

Note

This operation is available only for integration and computing task instances in Dev-Prod mode project spaces.

Edit node

Click the image icon and select Edit node to navigate from the instance list or DAG to the Basic project, where you can edit the task that generated the instance.

Note

This operation is supported only for integration and computing task instances in Basic mode project spaces.

Rerun upstream and downstream

Click the image icon and select Rerun upstream and downstream to rerun the upstream and downstream nodes of the instance. You can only rerun integration and computing task instances that are in the Success or Failed state. After confirmation, the selected instance is first reset to the Not Run state and then rerun based on its dependencies. Instances that are in a Waiting (Waiting for Scheduling Time or Waiting for Scheduling Resources) state or a Running state cannot be rerun, which may cause data inconsistencies. For more information, see Rerun upstream and downstream nodes.

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:

  • To synchronize downstream node data after the current node's data is updated.

  • To rerun a failed upstream or downstream node.

Set to success and continue scheduling

Click the image icon and select Set to Succeeded and Continue Scheduling to manually set the status of integration and computing task instance nodes that have Failed or are Not Run to Succeeded so they can continue to be scheduled. Click Set to Succeeded and Continue Scheduling, and in the Set to Succeeded and Continue Scheduling prompt dialog box, click OK to complete the setting.

Terminate

Click the image icon and select Terminate to stop the currently running instance. After termination, the instance status changes to Failed. When you terminate an instance, its downstream nodes do not run.

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:

  • An integration and computing task instance needs to be terminated due to a Dataphin error or an operational mistake.

  • An integration and computing task instance is in the Running state, but is not producing any data. You can manually terminate the run and check the run log for errors.

Force rerun

Click the image icon, select Force rerun, and then choose either Force rerun current instance or Force rerun upstream and downstream instances.

  • Force rerun current instance: This operation ignores the running status of upstream nodes. If not all upstream nodes have run successfully, the current instance may fail to rerun or produce incorrect data. Use this option with caution. After you force a rerun of the current integration and computing task instance, its data is updated.

  • Force rerun upstream and downstream instances: This operation does not check the status of upstream nodes, and you can force-rerun instances in any running state. After confirmation, the system first resets the selected instances to the Not Run state and then force-reruns them according to their dependencies. This prevents data inconsistencies that can occur if upstream nodes are rerunning while downstream nodes are also running. Only the starting point ignores upstream dependencies and scheduled start times; downstream nodes still follow dependencies and instance start conditions. A full force rerun may consume significant resources and affect other running instances. For more information, see Force rerun upstream and downstream instances.

    For more information about instance start conditions, see Dependencies and running instructions.

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 image icon and select Remove upstream dependencies to remove the upstream dependencies of an integration and computing task instance, regardless of its running status.

Important

You must keep at least one upstream instance.

Suspend

Click the image icon and select Suspend to suspend the current instance. Suspending an instance does not affect other instances of the same task. After you suspend an instance, neither it nor its downstream dependent instances will be scheduled.

Note
  • If an instance is in the Not Run state, suspension takes effect immediately for the current scheduling cycle. For instances in other states (including Waiting, Running, Success, or Failed), the suspension does not change the current state but takes effect in the next rerun or in the next scheduling cycle.

  • Suspension is often used when resources are limited, allowing you to pause low-priority instances to ensure high-priority tasks run first.

Resume

Click the image icon and select Resume to resume an integration and computing task instance that is in the Suspended state. Once resumed, the instance and its downstream instances are scheduled normally.

Modify scheduling resource group

Click the image icon and select Modify scheduling resource group to change the scheduling resource group used to run the instance.

Note
  • If you select tasks from multiple projects, the target scheduling resource group list shows only the resource groups that are shared by all selected projects. We recommend filtering by a single project before performing this bulk operation.

  • This modification affects only the current instance and has no impact on other instances of the same task.

Modify priority

Click the image icon and select Modify priority to open the Modify Priority dialog box and change the priority of the current task. You can select Highest, High, Medium, Low, or Lowest.

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

  • You can only rerun instances that are in the Success or Failed state.

  • If no selected instances are in the Success or Failed state, the bulk rerun operation is not supported. If the selection includes instances in both supported and unsupported states, the system reruns only the instances that are in the Success or Failed state.

Terminate

  • You can terminate instances in any state except Success, Failed, or Not Run.

  • If all selected instances are in the Success, Failed, or Not Run state, the bulk terminate operation is not supported. If the selection includes instances in both supported and unsupported states, the system does not terminate the instances in the Success, Failed, or Not Run state.

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.

  • If an instance is in the Not Run state, suspension takes effect immediately for the current scheduling cycle.

  • For instances in other states (including Waiting, Running, Success, or Failed), the suspension does not change the current state but takes effect in the next rerun or in the next scheduling cycle.

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
  • You can only modify the scheduling resource group for instances in a production environment project.

  • This modification affects only the current instance and has no impact on other instances of the same task.

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 Dataphin_Recurrence_Instances_{timestamp}.xlsx.

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

  1. In the Rerun Upstream and Downstream dialog box, configure the parameters.

    Note

    You 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.

  2. Click OK.

  3. After the rerun, the data for the selected upstream and downstream instance nodes is updated.

Force rerun upstream and downstream instances

  1. 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.

  2. Click OK.