ListManualDagInstances

Updated at:

Retrieves the information about manually executed workflow instances.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

dataworks:*

list

*All Resource

*

None None

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 executed workflow belongs. You can obtain it 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 RunManualDagNodes operation.

7000001231241

Response elements

Element

Type

Description

Example

object

The response result.

RequestId

string

The request ID, which is used to locate logs and troubleshoot issues.

SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF

Instances

array<object>

The list of internal instances of the manually executed workflow.

object

The returned data.

Status

string

The status of the instance task. Valid values:

  • NOT_RUN: Not run.

  • WAIT_TIME: Waiting for the scheduled time (DueTime or CycleTime).

  • WAIT_RESOURCE: Waiting for resources.

  • RUNNING: Running.

  • CHECKING: Delivered to Data Quality for data verification.

  • CHECKING_CONDITION: Verifying branch conditions.

  • FAILURE: Failed.

  • SUCCESS: Successful.

SUCCESS

BeginRunningTime

integer

The time when the instance task started running.

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

1605178414676

BizDate

integer

The business date. Typically, it is the day before the task runs.

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

1605178414676

CycTime

integer

The scheduled time of the instance task.

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

1605178414676

FinishTime

integer

The time when the instance task finished running.

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

1605178414676

CreateTime

integer

The time when the instance task was created.

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

1605178414676

DagId

integer

The DAG ID of the manually executed workflow instance.

350850491

InstanceId

integer

The internal instance ID.

11726873619

BeginWaitResTime

integer

The time when the instance task started waiting for resources.

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

1605178414676

TaskType

string

The scheduling type of the instance task. Valid values:

  • NORMAL(0): Normal scheduling task. The task is scheduled on a daily basis.

  • MANUAL(1): Manual task. The task is not scheduled on a daily basis.

  • PAUSE(2): Frozen task. The task is scheduled on a daily basis, but is directly set to the failed state when the scheduling is triggered.

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

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

  • SKIP_CYCLE(5): Weekly or monthly task that has not reached its execution cycle. The task is scheduled on a daily basis, but is directly set to the successful state when the scheduling is triggered.

  • CONDITION_UNCHOOSE(6): Downstream node not selected by a branch (IF) node in the upstream instance. The task is directly set to a dry-run task.

  • REALTIME_DEPRECATED(7): Real-time generated periodic instance that has expired. This type of task is directly set to the successful state.

MANUAL

ParamValues

string

The parameter information of the instance.

xxx=yyy

DagType

string

The identifier of the manually executed workflow.

5

NodeName

string

The name of the node.

test2

BeginWaitTimeTime

integer

The time when the instance task started waiting for scheduling.

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

1605178414676

NodeId

integer

The internal node ID of the workflow.

37851

ModifyTime

integer

The time when the instance task was last modified.

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

1605178414676

CreateUser

string

The user who triggered the instance to run. For example, if the user Test triggers the manually executed workflow instance to run, the value of CreateUser is Test.

Test

Examples

Success response

JSON format

{
  "RequestId": "SDFSDFSDF-SDFSDF-SDFDSF-SDFSDF",
  "Instances": [
    {
      "Status": "SUCCESS",
      "BeginRunningTime": 1605178414676,
      "BizDate": 1605178414676,
      "CycTime": 1605178414676,
      "FinishTime": 1605178414676,
      "CreateTime": 1605178414676,
      "DagId": 350850491,
      "InstanceId": 11726873619,
      "BeginWaitResTime": 1605178414676,
      "TaskType": "MANUAL",
      "ParamValues": "xxx=yyy",
      "DagType": "5",
      "NodeName": "test2",
      "BeginWaitTimeTime": 1605178414676,
      "NodeId": 37851,
      "ModifyTime": 1605178414676,
      "CreateUser": "Test"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.