Tasks.update 方法

定义

重载

update(String jobId, String taskId)

Updates the properties of the specified task.

update(String jobId, String taskId, TaskConstraints constraints, TaskUpdateOptions taskUpdateOptions)

Updates the properties of the specified task.

update(String jobId, String taskId)

Updates the properties of the specified task.

public void update(String jobId, String taskId)

参数

jobId
String

The ID of the job containing the task.

taskId
String

The ID of the task to update.

例外

IllegalArgumentException

thrown if parameters fail the validation

BatchErrorException

thrown if the request is rejected by server

RuntimeException

all other wrapped checked exceptions if the request fails to be sent

update(String jobId, String taskId, TaskConstraints constraints, TaskUpdateOptions taskUpdateOptions)

Updates the properties of the specified task.

public void update(String jobId, String taskId, TaskConstraints constraints, TaskUpdateOptions taskUpdateOptions)

参数

jobId
String

The ID of the job containing the task.

taskId
String

The ID of the task to update.

constraints
TaskConstraints

Constraints that apply to this task. If omitted, the task is given the default constraints. For multi-instance tasks, updating the retention time applies only to the primary task and not subtasks.

taskUpdateOptions
TaskUpdateOptions

Additional parameters for the operation

例外

IllegalArgumentException

thrown if parameters fail the validation

BatchErrorException

thrown if the request is rejected by server

RuntimeException

all other wrapped checked exceptions if the request fails to be sent

适用于