Queries the execution records of a task flow.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | ListTaskFlowInstance |
The operation that you want to perform. Set the value to ListTaskFlowInstance. |
| DagId | Long | Yes | 7*** |
The ID of the task flow. You can call the ListTaskFlow or ListLhTaskFlowAndScenario operation to obtain the task flow ID. |
| TriggerType | Integer | No | 1 |
The mode in which the task flow is triggered. Valid values:
|
| StartTimeBegin | String | No | 2022-01-07 |
The beginning of the time range to query the execution records of the task flow. Specify the time in the yyyy-MM-DD format. |
| StartTimeEnd | String | No | 2022-04-08 |
The end of the time range to query the execution records of the task flow. Specify the time in the yyyy-MM-DD format. |
| PageIndex | Integer | Yes | 1 |
The number of the page to return. |
| PageSize | Integer | Yes | 20 |
The number of entries to return on each page. |
| Tid | Long | No | 3*** |
The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 8CFF2295-8249-5287-B888-DBD4F0D76CB0 |
The ID of the request. |
| ErrorCode | String | UnknownError |
The error code returned if the request failed. |
| ErrorMessage | String | UnknownError |
The error message returned if the request failed. |
| Success | Boolean | true |
Indicates whether the request was successful. Valid values:
|
| DAGInstanceList | Array of DAGInstance |
The information about the execution records returned. |
|
| DAGInstance | |||
| Id | Long | 9234 |
The ID of the execution record. |
| BusinessTime | String | 2021-11-10 14:37:26 |
The time when the execution of the task flow was started. The time is displayed in the yyyy-MM-DD HH:mm:ss format. |
| EndTime | String | 2021-11-11 14:38:57 |
The time when the execution of the task flow was complete. The time is displayed in the yyyy-MM-DD HH:mm:ss format. |
| DagId | String | 7*** |
The ID of the task flow. |
| TriggerType | Integer | 1 |
The mode in which the task flow is triggered. Valid values:
|
| Status | Integer | 4 |
The status of the task flow. Valid values:
|
| Message | String | test |
The description of the task. |
| HistoryDagId | Long | 2**** |
The ID of the previously published version of the task flow. |
| DagName | String | Spark_SQL_test |
The name of the task flow. |
| OwnerName | String | test_name |
The name of the task flow owner. |
| DagVersion | String | [] |
The version of the task flow. |
| TotalCount | Integer | 1 |
The total number of execution records returned. |
Examples
Sample requests
http(s)://dms-enterprise.aliyuncs.com/?Action=ListTaskFlowInstance
&DagId=7***
&TriggerType=1
&StartTimeBegin=2022-01-07
&StartTimeEnd=2022-04-08
&PageIndex=1
&PageSize=20
&Tid=3***
&Common request parameters
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListTaskFlowInstanceResponse>
<RequestId>8CFF2295-8249-5287-B888-DBD4F0D76CB0</RequestId>
<Success>true</Success>
<DAGInstanceList>
<Id>9234</Id>
<BusinessTime>2021-11-10 14:37:26</BusinessTime>
<EndTime>2021-11-11 14:38:57</EndTime>
<DagId>7***</DagId>
<TriggerType>1</TriggerType>
<Status>4</Status>
<Message>test</Message>
<DagName>Spark_SQL_test</DagName>
<OwnerName>test_name</OwnerName>
</DAGInstanceList>
<TotalCount>1</TotalCount>
</ListTaskFlowInstanceResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "8CFF2295-8249-5287-B888-DBD4F0D76CB0",
"Success" : true,
"DAGInstanceList" : [ {
"Id" : 9234,
"BusinessTime" : "2021-11-10 14:37:26",
"EndTime" : "2021-11-11 14:38:57",
"DagId" : "7***",
"TriggerType" : 1,
"Status" : 4,
"Message" : "test",
"DagName" : "Spark_SQL_test",
"OwnerName" : "test_name"
} ],
"TotalCount" : 1
}
Error codes
For a list of error codes, visit the API Error Center.