BatchUpdateTasks
Applies incremental updates to multiple nodes.
Operation description
This operation requires DataWorks Basic Edition or a higher edition.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tasks |
array<object> |
No |
The list of nodes to update. You can specify up to 50 nodes at a time. For each node, specify the node ID and the fields to be updated. |
|
|
array<object> |
No |
|||
| Id |
integer |
Yes |
The ID of the node to update. You can obtain the ID from the |
1234 |
| EnvType |
string |
No |
The workspace environment. Valid values:
Valid values:
|
Prod |
| Name |
string |
No |
The name. |
SQL node |
| Description |
string |
No |
The description. |
test |
| Owner |
string |
No |
The account ID of the node owner. |
1000 |
| Timeout |
integer |
No |
The timeout period for node execution, in seconds. The scheduling system uses this configuration in whole hours. The specified number of seconds is rounded down to the nearest hour. |
3600 |
| RerunMode |
string |
No |
The configuration that specifies whether a node can be rerun. Valid values:
Valid values:
|
AllAllowed |
| RerunTimes |
integer |
No |
The number of retries. This parameter takes effect only when the node is configured to be rerunnable. |
3 |
| RerunInterval |
integer |
No |
The retry interval, in seconds. |
60 |
| Trigger |
object |
No |
The trigger mode of the node. |
|
| Type |
string |
No |
The trigger type. Valid values:
Valid values:
|
Scheduler |
| Recurrence |
string |
No |
The execution mode when triggered. This parameter takes effect only when type is set to Scheduler. Valid values:
Valid values:
|
Normal |
| Cron |
string |
No |
The cron expression. This parameter takes effect only when Type is set to Scheduler. |
00 00 00 * * ? |
| StartTime |
string |
No |
The effective time of the periodic trigger. This parameter takes effect only when Type is set to Scheduler. The format is |
1970-01-01 00:00:00 |
| EndTime |
string |
No |
The expiration time of the periodic trigger. This parameter takes effect only when Type is set to Scheduler. The format is |
9999-01-01 00:00:00 |
| RuntimeResource |
object |
No |
The runtime environment configuration, such as the resource group information. |
|
| ResourceGroupId |
string |
No |
The identifier of the scheduling resource group configured for node execution. |
S_res_group_524258031846018_1684XXXXXXXXX |
| Image |
string |
No |
The ID of the image configured for node execution. |
i-xxxxxx |
| Cu |
string |
No |
The CU consumption configured for node execution. |
0.25 |
| DataSource |
object |
No |
The associated data source information. |
|
| Name |
string |
No |
The name of the data source. |
odps_test |
| Tags |
array<object> |
No |
The list of node tags. |
|
|
object |
No |
|||
| Key |
string |
Yes |
The tag key. |
key1 |
| Value |
string |
No |
The tag value. |
value1 |
| Comment |
string |
No |
The comment. |
this is a comment |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
22C97E95-F023-56B5-8852-B1A77A17XXXX |
| SuccessInfo |
object |
The batch update results keyed by node ID. The |
{"10001": {"Success": false, "Message": "The task does not exist."}} |
|
object |
The result information. |
||
| Success |
boolean |
Indicates whether the operation was successful. |
true |
| Message |
string |
The error message. |
The task does not exist. |
Examples
Success response
JSON format
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A17XXXX",
"SuccessInfo": {
"key": {
"Success": true,
"Message": "The task does not exist."
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.