Manage integration and compute task instances

Updated at:

A recurring integration and compute task generates an instance when it runs at its scheduled time. You can perform various 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 describes how to view and manage these instances.

Prerequisites

You can view the Gantt chart only after purchasing the Intelligent O&M value-added service and enabling the Intelligent O&M module for your tenant.

Access the instance page

  1. On the Dataphin homepage, go to Dev > Task O&M in the top navigation bar.

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

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

  4. On the Recurring Instances page, click the Integration and Compute Tasks tab.

Operations in the instance list

After a recurring integration and compute task generates an instance, the instance appears in the list on the Recurring Instances > Integration and Compute Tasks tab. The list displays the following information: Instance Object, Instance ID, directory, running status, scheduling cycle, business date, scheduled time, start time, end time, duration, retry count, priority, O&M engineer, project, related baseline instance, HTTP path, scheduling resource group, tag, and available operations.

  • Instance Object: A recurring task generates an instance object when it runs. This column 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 Recurring instance icons and .

  • Directory: A snapshot of the task's directory at the time the instance was generated. This information is not updated if the task directory changes. The directory is shown only for instances generated after you upgrade to Dataphin V6.2. If you try to perform operations on an instance in a directory for which you do not have permissions, the system returns an error.

  • Running status: The current running status of the instance, including: Succeeded, Failed, Running, Waiting for scheduling time, Throttled, Waiting for scheduling resources, and Not Run. For more information about each status, see Recurring instance statuses.

  • Start time: The time when the instance started running. 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 the start time of the earliest internal materialized node.

  • 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 the end time of the latest internal materialized node.

  • Retry count/Auto retry count: The number of manual and automatic retries for the instance. The formula is retry count = 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 difference between the start time of the earliest internal materialized node and the end time of the latest internal materialized node.

  • Priority: The priority level of the instance.

    Note

    If you enable the baseline feature, the highest priority among all associated baselines determines the task's priority, overriding the originally configured task priority.

  • Project: The project to which the task belongs, displayed in the format Project_English_Name (Project_Chinese_Name).

  • Related baseline instance: The baseline that ensures this instance runs as a leaf node, and any related baselines that include this instance as an upstream node.

    Note

    This field is not displayed if the baseline feature is not enabled.

  • HTTP path: Displays the production or development environment HTTP path for Databricks SQL instances, depending on the selected environment.

    Note

    This field is displayed only for Databricks SQL instances. For other task types, it shows -.

  • Scheduling resource group: The name of the scheduling resource group used to run the instance.

    If the custom resource group specified for the task is unavailable, the system uses the project's default resource group instead. If the project's default resource group is also unavailable, the system uses the tenant's default resource group. The priority is: custom resource group > project default resource group > tenant default resource group.

    Note

    When you change the project's default resource group, the change may not be reflected here immediately. However, the actual execution uses the updated resource group.

    Tenant default resource group: This resource group does not belong to any project. Each tenant has only one default resource group. The system uses this resource group for scheduling if you do not specify a custom resource group for the task and no default resource group is specified for the project. This applies only to tasks that use dedicated resources, such as SQL and Virtual tasks.

The following table describes the operations available for integration and compute task instances.

Actions

Description

DAG

Click the image icon to view the DAG of the recurring instance. For more information, see Recurring instance DAG.

View run log

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

Rerun

Click the image icon to rerun the instance. You can only rerun integration and compute task instances with a Succeeded or Failed status. When you rerun an instance, the system checks whether all upstream nodes have a Succeeded status. If the check fails, the system sets the instance status to Not Run.

If your business scenario requires a rerun without this check, you can force a 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.

  • Selected node as: Choose whether to set the current node as the Start Node or End Node. If you select Start Node, the system pre-fills the field below with the current node, and you cannot change it. 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 nodes in the list are formatted as {Node Name}({Node ID, {Instance Scheduled Time}}). If you set the selected node as the end node, the start node defaults to the tenant's root node.

    Note

    Hourly and minute-based tasks have multiple nodes (one for each 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 nodes in the list are formatted as {Node Name}({Node ID, {Instance Scheduled Time}}).

    Note

    If you select a logical table as the end node, you cannot select specific fields because the logical table is treated as a single entity.

For more information about Gantt charts, see View the 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, even those not displayed in the UI.

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 select from Level 1~Level 10 or Unlimited levels. The default is Level 1 for both. After selecting the levels, click OK to download 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 compute task instances, you can switch between viewing the logical code and physical code.

Logical code: The task code that you wrote.

Physical code: The compiled code that can run on the Flink engine.

Recurring task

Click the image icon and select Recurring task to view the recurring task to which the current instance belongs.

Edit development node

Click the image icon and select Edit development node to go to the development page for the instance, where you can modify it.

Note

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

View production node

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

Note

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

Edit node

Click the image icon and select Edit node to go to a Basic mode project from the instance list or DAG. You can edit the integration and compute task that generated the instance.

Note

This operation is available only for integration and compute task instances in Basic mode project spaces.

Rerun upstream and downstream instances

Click the image icon and select Rerun upstream and downstream instances to rerun the upstream and downstream nodes of the instance. You can only rerun integration and compute task instances with a Succeeded or Failed status. After you confirm the operation, the selected instances are first reset to the Not Run status and then rerun according to their dependencies. Instances with a Waiting (Waiting for scheduling time, Waiting for scheduling resources) or Running status cannot be rerun, which may cause data inconsistencies between upstream and downstream nodes. For details, see Rerun upstream and downstream instances.

To rerun the entire chain, consider using Force Rerun Upstream and Downstream Instances. For details, see Force rerun upstream and downstream instances.

This operation is often used in the following scenarios:

  • When you update the data of the current instance node, you must update the data of its downstream nodes accordingly.

  • After an upstream or downstream node of the instance fails, you need to rerun it.

Set to success and continue scheduling

Click the image icon and select Set to success and continue scheduling to manually set the status of integration and computing task instance nodes that have failed or have not run to successful so that they can continue to be scheduled. Click Set to success and continue scheduling, and then in the Set to success and continue scheduling dialog box, click OK to complete the setting.

Terminate

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

Note

You cannot terminate instances with a Succeeded, Failed, or Not Run status. Instances in any other status can be terminated.

This operation is often used in the following scenarios:

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

  • An integration and compute task instance is in the running state, but no data is being produced. You can manually terminate the run and check the run log to troubleshoot the issue.

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 reruns the instance without checking the status of its upstream nodes. If the upstream nodes have not all succeeded, the current instance might fail to rerun or produce incorrect data. Proceed with caution. After a successful force rerun, the system updates the data for the current instance.

  • Force rerun upstream and downstream instances: This operation does not check the status of upstream nodes. You can forcibly rerun instances in any running status. After you confirm the operation, the system first resets the selected instances to the Not Run status and then forcibly reruns them according to their dependencies. This prevents data inconsistencies that could occur if downstream nodes run while upstream nodes are being rerun. Only the starting node ignores upstream dependencies and scheduled time checks; downstream nodes must still adhere to dependencies and instance start conditions. A full force rerun can consume significant resources and affect other running instances. For details, see Force rerun upstream and downstream instances.

    For more information about instance start conditions, see Dependencies and run rules.

Important

A force rerun does not check if all upstream nodes have succeeded or if the instance has reached its scheduled time. This carries 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 compute task instance, regardless of its running status.

Important

You must retain at least one upstream instance.

Pause

Click the image icon and select Pause to pause the current instance. Pausing an instance does not affect other instances of the same integration and compute task. After you pause an instance, it and its downstream dependent instances are not scheduled.

Note
  • If the instance status is Not Run, the pause takes effect immediately for the current scheduling cycle. For other statuses (including Waiting, Running, Succeeded, or Failed), the current status does not change immediately; the pause will apply to the next rerun or the next scheduling cycle.

  • The pause operation is often used during periods of high resource demand to pause low-priority instances and allow high-priority tasks to run first.

Resume

Click the image icon and select Resume to resume an integration and compute task instance that is Paused. After you resume it, the instance and its downstream dependent instances are scheduled normally.

Modify HTTP path

This operation modifies the production environment HTTP path for the corresponding task. You can select any HTTP path configured for the cluster associated with the production project.

Note

This operation is available only for Databricks SQL tasks in the production environment.

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 will only show resource groups that are authorized for 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. In the Modify Priority dialog box, change the task's priority. You can select Highest, High, Medium, Low, or Lowest.

Operations on DAG nodes

The DAG provides a clear visualization of the dependency relationships between instance nodes. You can also manage upstream and downstream instance 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 compute task instance node to perform the related operations.

Dataphin supports managing instance nodes across different projects. To perform O&M operations on a cross-project instance node, you must have view and operation permissions for the project that contains the instance.

  • Supported operations in the DAG view

    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 DAG of the task node that generated the current instance node. You can view task node details, upstream and downstream node information, and manage the task node. For more information, see Recurring tasks.

    View operation logs

    View the log of operations performed on this instance.

  • Supported operations on a DAG node

    Hover over a DAG node to view its name, type, scheduling cycle, O&M engineer, and description. An integration and compute task instance node in the DAG has the same operations available as in the instance list. For more information, see Operations in the instance list.

Bulk operations

The following table describes the supported bulk operations for recurring integration and compute task instances:

Actions

Description

Rerun

  • You can only rerun instances with a Succeeded or Failed status.

  • If none of the selected instances have a Succeeded or Failed status, the bulk rerun operation is not supported. If you select a mix of instances with different statuses, the system reruns only those with a Succeeded or Failed status.

Terminate

  • You cannot terminate instances with a Succeeded, Failed, or Not Run status. Instances in any other status can be terminated.

  • If all selected instances have a Succeeded, Failed, or Not Run status, the bulk terminate operation is not supported. If you select a mix of instances with different statuses, the system does not terminate those with a Succeeded, Failed, or Not Run status.

Set to success and continue scheduling

After selecting multiple instances, you can manually set the status of all instances that are Failed or Not Run to Succeeded, allowing them to proceed with scheduling.

Pause

Supports bulk pausing of instances in any running status.

  • If an instance's status is Not Run, the pause takes effect immediately for the current scheduling cycle.

  • For other statuses (including Waiting, Running, Succeeded, or Failed), the current status does not change immediately; the pause will apply to the next rerun or the next scheduling cycle.

Resume

This operation resumes multiple Paused recurring instances at once.

Modify HTTP path

You can modify the production environment HTTP path for multiple Databricks SQL instances. If the selected instances belong to different Databricks clusters, you must specify an HTTP path for each cluster separately. You can choose from any HTTP path configured for the respective cluster.

Note

This operation is available only when you select Databricks SQL instances in the production environment.

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 instances and has no impact on other instances of the same task.

Modify priority

This operation modifies the priority of multiple selected instances at once. You can select Highest, High, Medium, Low, or Lowest.

Download all

Downloads data for all recurring instances, including both integration and compute task instances and modeling task instances. After you click this option, the system submits a download task and generates the file asynchronously in the background. The file is automatically downloaded to your local computer when ready. The file is an XLSX file and is named Dataphin_recurring_instances_{timestamp}.xlsx.

The table includes the following information: Instance Object, Instance ID, running status, scheduling cycle, business date, priority, O&M engineer, project (for summary logical tables with multiple projects, project names are separated by commas), scheduled time, start time, end time, duration, retry count, related baseline instance (names of baselines associated with the instance, separated by commas), and scheduling resource group (this parameter is empty for modeling task instances).

Rerun upstream and downstream instances

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

    Note

    You can only rerun instances with a Succeeded or Failed status. After you confirm the operation, the selected instances are first reset to the Not Run status and then rerun according to their dependencies.

    Instances with a Waiting or Running status cannot be rerun, which may cause data inconsistencies. If you need to rerun the entire dependency chain, consider using Force Rerun Upstream and Downstream Instances. For details, see Force rerun upstream and downstream instances.

    Parameter

    Description

    Start node run mode

    Defines how the start node runs. You can choose from the following options:

    • dry run: The instance status shows Succeeded (normal scheduling), but the run log is empty, there is no duration, and no data is actually processed.

    • Normal run: The instance is scheduled and runs normally.

    Upstream and downstream rerun scope

    Select the scope of instances to rerun.

    • All Failed Instances: The system automatically selects all upstream and downstream instances with a Failed status for rerun. A specific list of nodes is not displayed.

    • Custom: Specify the upstream and downstream instances to rerun. If you select this option, you must configure the Custom rerun scope.

    Custom rerun scope

    Select the direction of nodes to rerun. You can select multiple options. This is configurable only when Upstream and downstream rerun scope is set to Custom. You must specify at least one instance in the selected direction.

    • Upstream instances: If selected, the Upstream Node List is displayed, allowing you to specify the upstream instances to rerun.

    • Downstream instances: If selected, the Downstream Node List is displayed, allowing you to specify the 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 operation, 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 rerun parameters.

    Parameter

    Description

    Start node run mode

    Defines how the start node runs. You can choose from the following options:

    • dry run: The instance status shows Succeeded (normal scheduling), but the run log is empty, there is no duration, and no data is actually processed.

    • Normal run: The instance is scheduled and runs normally.

    Upstream and downstream force rerun scope

    Select the scope of instances to forcibly rerun.

    • All instances: Selects all upstream and downstream instance nodes of the start node for a force rerun. A specific list of nodes is not displayed.

    • Custom: Specify the upstream and downstream instances to forcibly rerun. If you select this option, you must configure the Custom rerun scope.

    Custom rerun scope

    Select the direction of nodes to forcibly rerun. You can select multiple options. This is configurable only when Upstream and downstream force rerun scope is set to Custom. You must specify at least one instance in the selected direction.

    • Upstream instances: If selected, the Upstream Node List is displayed, allowing you to specify the upstream instances to forcibly rerun.

    • Downstream instances: If selected, the Downstream Node List is displayed, allowing you to specify the downstream instances to forcibly rerun.

    In the upstream and downstream node lists, if you select the failed run filter, the system selects all failed instances that match the filter criteria. The default level is 1, which shows 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, and level.

    Note
    • A force rerun does not check the status of upstream nodes. You can forcibly rerun instances in any running status.

    • After you confirm the operation, the system first resets the selected instances to the Not Run status and then forcibly reruns them according to their dependencies.

    • A full force rerun can consume significant resources and affect other running instances.

  2. Click OK to complete the setup.