ListDownstreamTaskInstances
Retrieves a paginated list of downstream task instances for a specified task instance.
Operation description
You must purchase DataWorks Basic Edition or higher to use this feature.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The ID of the task instance. You can obtain the ID from the |
1234 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. |
10 |
| PageNumber |
integer |
No |
The page number, starting from 1. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. You can use this ID to locate logs and troubleshoot issues. |
22C97E95-F023-56B5-8852-B1A77A17XXXX |
| PagingInfo |
object |
The pagination information. |
|
TaskInstances
deprecated
|
array<object> |
[Deprecated] The list of task instances. Use DownstreamTaskInstances instead. |
|
|
array<object> |
|||
| StepType |
string |
The dependency type. Valid values:
|
Normal |
| TaskId |
integer |
The ID of the corresponding task. |
1234 |
| TaskType |
string |
The type of the corresponding task. |
ODPS_SQL |
| TaskName |
string |
The name of the corresponding task. |
SQL node |
| Description |
string |
The description. |
test |
| WorkflowId |
integer |
The ID of the workflow to which the task belongs. |
1234 |
| WorkflowName |
string |
The name of the workflow to which the task belongs. |
Test workflow |
| TriggerType |
string |
The trigger type. Valid values:
|
Scheduler |
| TriggerRecurrence |
string |
The run mode when triggered. This parameter takes effect only when TriggerType is set to Scheduler. Valid values:
|
Normal |
| WorkflowInstanceId |
integer |
The ID of the workflow instance to which the task belongs. |
1234 |
| WorkflowInstanceType |
string |
The type of the workflow instance to which the task belongs. Valid values:
|
Normal |
| Timeout |
integer |
The timeout period for task execution, in seconds. Note: The scheduling system rounds the configured value to a whole number of hours. |
3600 |
| RerunMode |
string |
The configuration that specifies whether the task can be rerun. Valid values:
|
AllAllowed |
| RunNumber |
integer |
The current run count. Default value: 1. |
1 |
| PeriodNumber |
integer |
The cycle sequence number. This indicates the cycle round of the task instance on the current day. |
1 |
| BaselineId |
integer |
The baseline ID. |
1234 |
| Priority |
integer |
The execution priority of the task. Valid values: 1 to 8. A larger value indicates a higher priority. Default value: 1. |
1 |
| RuntimeResource |
object |
The resource group associated with the instance. |
|
| ResourceGroupId |
string |
The identifier of the scheduling resource group configured for task execution. |
S_res_group_524258031846018_1684XXXXXXXXX |
| Image |
string |
The ID of the image configured for task execution. |
i-xxxxxx |
| Cu |
string |
The number of compute units (CUs) consumed by the task execution configuration. |
0.25 |
| Runtime |
object |
The runtime information of the instance. |
|
| ProcessId |
string |
The unique ID of the run. |
T3_123 |
| Gateway |
string |
The machine on which the task is executed. |
cn-shanghai.1.2 |
| DataSource |
object |
The data source associated with the instance. |
|
| Name |
string |
The name of the data source. |
mysql_test |
| Status |
string |
The run status of the instance. Valid values:
|
Success |
| TriggerTime |
integer |
The scheduled trigger time. The value is a 13-digit number, such as |
1710239005403 |
| Bizdate |
integer |
The business date. The value is a 13-digit number, such as |
1710239005403 |
| StartedTime |
integer |
The start time. The value is a 13-digit number, such as |
1710239005403 |
| FinishedTime |
integer |
The completion time. The value is a 13-digit number, such as |
1710239005403 |
| Id |
integer |
The unique identifier of the task instance. |
1234 |
| ProjectId |
integer |
The ID of the DataWorks workspace. |
100 |
ProjectEnv
deprecated
|
string |
[Deprecated] The project environment. Use EnvType instead. |
Prod |
| EnvType |
string |
The environment to which the destination data source belongs. Valid values:
|
Prod |
| Owner |
string |
The account ID of the task owner. |
100 |
| CreateTime |
integer |
The creation time. The value is a 13-digit number, such as |
1710239005403 |
| ModifyTime |
integer |
The update time. The value is a 13-digit number, such as |
1710239005403 |
| CreateUser |
string |
The account ID of the user who created the instance. |
1000 |
| ModifyUser |
string |
The account ID of the user who updated the instance. |
1000 |
| DownstreamTaskInstances |
array<object> |
The list of downstream task instances and their dependency types. |
|
|
array<object> |
|||
| DependencyType |
string |
The dependency type. Valid values:
|
Normal |
| TaskInstance |
object |
The task instance. |
|
| TaskId |
integer |
The ID of the corresponding task. |
1234 |
| TaskType |
string |
The type of the corresponding task. |
ODPS_SQL |
| TaskName |
string |
The name of the corresponding task. |
SQL node |
| Description |
string |
The description. |
test |
| WorkflowId |
integer |
The ID of the workflow to which the task belongs. |
1234 |
| WorkflowName |
string |
The name of the workflow to which the task belongs. |
Test workflow |
| TriggerType |
string |
The trigger type. Valid values:
|
Scheduler |
| TriggerRecurrence |
string |
The run mode when triggered. This parameter takes effect only when TriggerType is set to Scheduler. Valid values:
|
Normal |
| WorkflowInstanceId |
integer |
The ID of the workflow instance to which the task belongs. |
1234 |
| WorkflowInstanceType |
string |
The type of the workflow instance to which the task belongs. Valid values:
|
Normal |
| Timeout |
integer |
The timeout period for task execution, in seconds. Note: The scheduling system rounds the configured value to a whole number of hours. |
3600 |
| RerunMode |
string |
The configuration that specifies whether the task can be rerun. |
AllAllowed |
| RunNumber |
integer |
The current run count. Default value: 1. |
1 |
| PeriodNumber |
integer |
The cycle sequence number. This indicates the cycle round of the task instance on the current day. |
1 |
| BaselineId |
integer |
The baseline ID. |
1234 |
| Priority |
integer |
The execution priority of the task. Valid values: 1 to 8. A larger value indicates a higher priority. Default value: 1. |
1 |
| RuntimeResource |
object |
The runtime environment configuration, such as resource group information. |
|
| ResourceGroupId |
string |
The identifier of the scheduling resource group configured for task execution. |
S_res_group_524258031846018_1684XXXXXXXXX |
| Image |
string |
The ID of the image configured for task execution. |
i-xxxxxx |
| Cu |
string |
The number of compute units (CUs) consumed by the task execution configuration. |
0.25 |
| Runtime |
object |
The runtime information of the instance. |
|
| ProcessId |
string |
The unique ID of the run. |
T3_123 |
| Gateway |
string |
The machine on which the task is executed. |
cn-shanghai.1.2 |
| DataSource |
object |
The data source associated with the instance. |
|
| Name |
string |
The name of the data source. |
mysql_test |
| Status |
string |
The run status of the instance. Valid values:
|
Success |
| TriggerTime |
integer |
The scheduled trigger time. The value is a 13-digit number, such as |
1710239005403 |
| Bizdate |
integer |
The business date. The value is a 13-digit number, such as |
1710239005403 |
| StartedTime |
integer |
The start time. The value is a 13-digit number, such as |
1710239005403 |
| FinishedTime |
integer |
The completion time. The value is a 13-digit number, such as |
1710239005403 |
| Id |
integer |
The unique identifier of the task instance. |
1234 |
| ProjectId |
integer |
The ID of the DataWorks workspace. |
100 |
| EnvType |
string |
The environment to which the destination data source belongs. Valid values:
|
Prod |
| Owner |
string |
The account ID of the task owner. |
1000 |
| CreateTime |
integer |
The creation time. The value is a 13-digit number, such as |
1710239005403 |
| ModifyTime |
integer |
The update time. The value is a 13-digit number, such as |
1710239005403 |
| CreateUser |
string |
The account ID of the user who created the instance. |
1000 |
| ModifyUser |
string |
The account ID of the user who updated the instance. |
1000 |
| TotalCount |
integer |
The total number of downstream task instances for the specified task instance. |
100 |
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
Examples
Success response
JSON format
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
"PagingInfo": {
"TaskInstances": [
{
"StepType": "Normal",
"TaskId": 1234,
"TaskType": "ODPS_SQL",
"TaskName": "SQL node\n",
"Description": "test",
"WorkflowId": 1234,
"WorkflowName": "Test workflow",
"TriggerType": "Scheduler",
"TriggerRecurrence": "Normal",
"WorkflowInstanceId": 1234,
"WorkflowInstanceType": "Normal",
"Timeout": 3600,
"RerunMode": "AllAllowed",
"RunNumber": 1,
"PeriodNumber": 1,
"BaselineId": 1234,
"Priority": 1,
"RuntimeResource": {
"ResourceGroupId": "S_res_group_524258031846018_1684XXXXXXXXX",
"Image": "i-xxxxxx",
"Cu": "0.25"
},
"Runtime": {
"ProcessId": "T3_123\n",
"Gateway": "cn-shanghai.1.2"
},
"DataSource": {
"Name": "mysql_test\n"
},
"Status": "Success",
"TriggerTime": 1710239005403,
"Bizdate": 1710239005403,
"StartedTime": 1710239005403,
"FinishedTime": 1710239005403,
"Id": 1234,
"ProjectId": 100,
"ProjectEnv": "Prod",
"EnvType": "Prod",
"Owner": "100",
"CreateTime": 1710239005403,
"ModifyTime": 1710239005403,
"CreateUser": "1000\n",
"ModifyUser": "1000\n"
}
],
"DownstreamTaskInstances": [
{
"DependencyType": "Normal",
"TaskInstance": {
"TaskId": 1234,
"TaskType": "ODPS_SQL",
"TaskName": "SQL node",
"Description": "test",
"WorkflowId": 1234,
"WorkflowName": "Test workflow",
"TriggerType": "Scheduler",
"TriggerRecurrence": "Normal",
"WorkflowInstanceId": 1234,
"WorkflowInstanceType": "Normal",
"Timeout": 3600,
"RerunMode": "AllAllowed",
"RunNumber": 1,
"PeriodNumber": 1,
"BaselineId": 1234,
"Priority": 1,
"RuntimeResource": {
"ResourceGroupId": "S_res_group_524258031846018_1684XXXXXXXXX",
"Image": "i-xxxxxx",
"Cu": "0.25"
},
"Runtime": {
"ProcessId": "T3_123",
"Gateway": "cn-shanghai.1.2"
},
"DataSource": {
"Name": "mysql_test"
},
"Status": "Success",
"TriggerTime": 1710239005403,
"Bizdate": 1710239005403,
"StartedTime": 1710239005403,
"FinishedTime": 1710239005403,
"Id": 1234,
"ProjectId": 100,
"EnvType": "Prod",
"Owner": "1000",
"CreateTime": 1710239005403,
"ModifyTime": 1710239005403,
"CreateUser": "1000",
"ModifyUser": "1000"
}
}
],
"TotalCount": 100,
"PageSize": 10,
"PageNumber": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.