All Products
Search
Document Center

DataWorks:View the version information about a node

Last Updated:Nov 21, 2023

A new version is generated each time a node or a workflow is committed. On the Versions tab, you can view the version information about a node or a workflow, such as the commit history and change types. You can also compare different versions and roll back a node or a workflow to a specific version based on your business requirements. This topic describes how to view the version information about a node. The procedure for viewing the version information about a workflow is similar to the procedure for viewing the version information about a node.

Go to the configuration tab of a node

  1. Log on to the DataWorks console. In the left-side navigation pane, choose Data Modeling and Development > DataStudio. On the page that appears, select the desired workspace from the drop-down list and click Go to DataStudio.

  2. Go to the configuration tab of the desired node.

    In the left-side navigation pane of the DataStudio page, find the desired node and double-click the name of the node. The configuration tab of the node appears.

View the version information about the node and roll back the node

In the right-side navigation pane of the configuration tab, click the Versions tab to view the version information about the node. 节点版本The following table describes some parameters.

Parameter

Description

Change Type

The first time you commit a node, the value of the Change Type parameter is Create. If you commit the node again, the value of this parameter changes to Change.

Status

  • Yes: The node is committed to the development environment. However, no deployment package is created for the node, and the node is not deployed to the production environment.

    You can go to the Deploy page to deploy the node. For more information, see Deploy nodes.

  • Not Deployed: The node is committed to the development environment, and a deployment package is created for the node. However, the node is not deployed to the production environment. The node waits to be deployed.

    You can go to the Deploy page to deploy the node. For more information, see Deploy nodes.

  • Deployed: The node is committed to the development environment and is deployed to the production environment.

Actions

  • View: You can click View in the Actions column to view the code and scheduling settings of a node.

  • Compare: You can click Compare in the Actions column to compare the version with the saved version. You can also select two versions and click Compare Versions to compare the versions.

    Note

    You can compare only two versions of a node at a time.

  • Roll Back: You can click Roll Back in the Actions column to roll back a node to a specific version based on your business requirements.

    Note

    After the rollback, the version to which you roll back overwrites the current version of the node, and you must commit the node again to make the modification take effect.

Compare the versions of a node

You can use one of the following methods to compare the versions of a node.

  • On the DataStudio page, double-click the name of the desired node to go to the configuration tab of the node. In the right-side navigation pane, click the Versions tab. On the Versions tab, compare versions of the node.

  • On the DataStudio page, double-click the name of the desired node to go to the configuration tab of the node. In the toolbar, click Deploy. On the Create Deploy Task page, you can find the version that you want to deploy and click Compare in the Actions column to view the changes in the node based on the differences between the selected version and the deployed version in the production environment.

The following table describes some scheduling parameters of a node.

Parameter

Description

appId

The ID of the DataWorks workspace to which the node belongs. You can go to the Workspace Management page to view the ID.

createUser

The ID of the user who created the node.

createTime

The time when the node is created.

lastModifyUser

The ID of the user who last modified the node.

lastModifyTime

The time when the node is last modified.

owner

The owner ID of the node. You can view the owner ID in the General section of the Properties tab. For more information, see Configure basic properties.

startRightNow

The mode in which auto triggered node instances are generated for the node. Valid values:

  • 0: Auto triggered node instances are generated on the next day after the node is deployed.

  • 1: Auto triggered node instances are immediately generated after the node is deployed.

For more information, see Configure immediate instance generation for a node.

taskRerunTime

The number of times for which the node is rerun.

taskRerunInterval

The interval between two consecutive automatic reruns. Unit: milliseconds.

reRunAble

Specifies whether the node can be rerun. Valid values:

  • 0: The node can be rerun only after it fails to run.

  • 1: The node can be rerun regardless of whether it is run as expected or fails to run.

  • 2: The node cannot be rerun regardless of whether it is run as expected or fails to run.

startEffectDate

The start date and time of the time period during which you want the scheduling to take effect.

endEffectDate

The end date and time of the time period during which you want the scheduling to take effect.

cycleType

The scheduling type of the node. Valid values:

  • 0: The node can be scheduled by day, week, month, or year.

  • 1, 2, or 3: The node can be scheduled by minute or hour.

cronExpress

The CRON expression that represents the automatic scheduling policy of the node.

extConfig

The additional configurations of the node. The value must be in the JSON format and contains the settings of the following fields:

  • ignoreBranchConditionSkip: specifies whether to use the dry-run property in the previous cycle for the current cycle of the node. For more information, see Passing of the dry-run attribute of an ancestor node.

    • true: The dry-run property in the previous cycle is used in the current cycle of the node.

    • false: The dry-run property in the previous cycle is not used in the current cycle of the node.

  • alisaTaskKillTimeout: the timeout period. Unit: hours.

resgroupId

The ID of the resource group for scheduling that is used to run the node. For more information, see Configure the resource property.

isAutoParse

Specifies whether to enable the automatic parsing feature for the node. Valid values:

  • 1: The automatic parsing feature is enabled for the node.

  • 0: The automatic parsing feature is disabled for the node.

For more information, see Configure same-cycle scheduling dependencies.

input

The input and output configurations of the node. The parameter values contain the settings of the following fields:

  • str: the input or output value.

  • refTableName: the output table.

  • parseType: the manner in which the scheduling dependencies of the node are configured. Valid values:

    • 0: The scheduling dependencies are automatically configured for the node by using the automatic parsing feature.

    • 1: The scheduling dependencies are manually configured for the node.

    • 2: The scheduling dependencies are automatically configured for the node based on the data lineage between the node and its ancestor and descendant nodes.

For more information, see Scheduling dependency configuration guide.

inputList

output

outputList

dependentTypeList

The scheduling dependencies of the node in the previous cycle. Valid values:

  • 0: no specified node.

  • 1: one or more specified nodes.

  • 2: level-1 descendant nodes.

  • 3: the current node.

For more information, see Configure cross-cycle scheduling dependencies.

dependentDataNode

The IDs of one or more nodes that are specified as the scheduling dependencies of the node in the previous cycle. This parameter is valid only if the dependentTypeList parameter is set to 1.

inputContextList

The configurations of the context-based input and output parameters of the node. For more information, see Configure input and output parameters.

outputContextList

isStop

Specifies whether to suspend the scheduling of the node. Valid values:

  • 0: does not suspend the scheduling of the node. The system performs normal scheduling or a dry-run for the node.

  • 1: suspends the scheduling of the node.

tags

The reserved parameters.

tagList

fileId

dependentType

For more information about the time properties, see Configure time properties.