GetManualDagInstances

Updated at:

Queries the information about instances of manually triggered workflows.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ProjectEnv

string

Yes

The scheduling environment identifier in Operation Center, including PROD (production environment) and DEV (development environment).

Valid values:

  • PROD :

    Production environment.

  • DEV :

    Development environment.

PROD

ProjectName

string

Yes

The name of the workspace to which the manually triggered workflow belongs. You can obtain the name on the Workspace Configuration page in the DataWorks console.

test_workspace

DagId

string

Yes

The DAG instance ID for the manual workflow run. You can obtain it by calling the CreateManualDag operation.

7000001231241

Response elements

Element

Type

Description

Example

object

The response entity.

RequestId

string

The unique ID of the request.

SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF

Instances

array<object>

The internal instances of the manually triggered workflow.

object

The instance details.

Status

string

The status of the node instance. Valid values:

  • NOT_RUN: Not run.

  • WAIT_TIME: Waiting for the scheduled time (dueTime or cycleTime) to arrive.

  • WAIT_RESOURCE: Waiting for resources.

  • RUNNING: Running.

  • CHECKING: Data quality check in progress.

  • CHECKING_CONDITION: Branch condition check in progress.

  • FAILURE: Failed.

  • SUCCESS: Successful.

WAIT_TIME

BeginRunningTime

integer

The time when the node instance started running.

The value is a 13-digit number, such as 1605178414676.

1605178414676

BizDate

integer

The business date. Typically, this is the day before the node runs.

The value is a 13-digit number, such as 1605178414676.

1605178414676

CycTime

integer

The scheduled time of the node instance.

The value is a 13-digit number, such as 1605178414676.

1605178414676

FinishTime

integer

The time when the node instance finished running.

The value is a 13-digit number, such as 1605178414676.

1605178414676

CreateTime

integer

The time when the node instance was created.

The value is a 13-digit number, such as 1605178414676.

1605178414676

DagId

integer

The DAG ID of the manually triggered workflow instance.

350850491

InstanceId

integer

The internal instance ID.

11726873619

BeginWaitResTime

integer

The time when the node instance started waiting for resources.

The value is a 13-digit number, such as 1605178414676.

1605178414676

TaskType

string

The scheduling type of the node instance. Valid values:

  • NORMAL(0): Normal node. The node is scheduled on a regular basis.

  • MANUAL(1): Manually triggered node. The node is not scheduled on a regular basis.

  • PAUSE(2): Paused node. The node is scheduled on a regular basis, but is directly set to the failed state when scheduling starts.

  • SKIP(3): Dry-run node. The node is scheduled on a regular basis, but is directly set to the successful state when scheduling starts.

  • SKIP_UNCHOOSE(4): Unselected node in a temporary workflow. This type of node exists only in temporary workflows and is directly set to the successful state when scheduling starts.

  • SKIP_CYCLE(5): Node that has not reached its scheduled week or month. The node is scheduled on a regular basis, but is directly set to the successful state when scheduling starts.

  • CONDITION_UNCHOOSE(6): Unselected downstream node. An upstream instance contains a branch (IF) node, but this downstream node is not selected by the branch node and is directly set to a dry-run node.

  • REALTIME_DEPRECATED(7): Expired periodic instance generated in real time. This type of node is directly set to the successful state.

NORMAL(0)

ParamValues

string

The parameter information of the instance.

xxx

DagType

string

The type of the manually triggered workflow.

5

NodeName

string

The name of the node.

test2

BeginWaitTimeTime

integer

The time when the node instance started waiting to be scheduled.

The value is a 13-digit number, such as 1605178414676.

1605178414676

NodeId

integer

The internal node ID of the workflow.

37851

ModifyTime

integer

The latest modification time of the node instance.

The value is a 13-digit number, such as 1605178414676.

1605178414676

CreateUser

string

The operator.

example-user

Examples

Success response

JSON format

{
  "RequestId": "SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF",
  "Instances": [
    {
      "Status": "WAIT_TIME",
      "BeginRunningTime": 1605178414676,
      "BizDate": 1605178414676,
      "CycTime": 1605178414676,
      "FinishTime": 1605178414676,
      "CreateTime": 1605178414676,
      "DagId": 350850491,
      "InstanceId": 11726873619,
      "BeginWaitResTime": 1605178414676,
      "TaskType": "NORMAL(0)",
      "ParamValues": "xxx",
      "DagType": "5",
      "NodeName": "test2",
      "BeginWaitTimeTime": 1605178414676,
      "NodeId": 37851,
      "ModifyTime": 1605178414676,
      "CreateUser": "example-user"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.