BatchUpdateTasks

Updated at:

Applies incremental updates to multiple nodes.

Operation description

This operation requires DataWorks Basic Edition or a higher edition.

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

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 PagingInfo.Tasks[].Id parameter returned by the ListTasks operation.

1234

EnvType

string

No

The workspace environment. Valid values:

  • Prod: production

  • Dev: development

Valid values:

  • Prod :

    Production.

  • Dev :

    Development.

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:

  • AllDenied: The node cannot be rerun regardless of success or failure.

  • FailureAllowed: The node can be rerun only if it fails.

  • AllAllowed: The node can be rerun regardless of success or failure.

Valid values:

  • AllDenied :

    The node cannot be rerun regardless of whether it succeeds or fails.

  • FailureAllowed :

    The node can be rerun only if it fails.

  • AllAllowed :

    The node can be rerun regardless of whether it succeeds or fails.

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:

  • Scheduler: triggered by a scheduling cycle

  • Manual: triggered manually

Valid values:

  • Scheduler :

    Triggered by a scheduling cycle.

  • Manual :

    Triggered manually.

Scheduler

Recurrence

string

No

The execution mode when triggered. This parameter takes effect only when type is set to Scheduler. Valid values:

  • Pause: Pauses the task.

  • Skip: Performs a dry run.

  • Normal: Runs the task normally.

Valid values:

  • Pause :

    Paused.

  • Skip :

    Dry run.

  • Normal :

    Normal running.

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 yyyy-mm-dd hh:mm:ss.

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 yyyy-mm-dd hh:mm:ss.

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 Success field in each item indicates whether the node was updated successfully. If the update fails, check the Message field.

{"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.