Tasks.deleteWithServiceResponseAsync 方法

定义

重载

deleteWithServiceResponseAsync(String jobId, String taskId)

Deletes a task from the specified job. When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.

deleteWithServiceResponseAsync(String jobId, String taskId, TaskDeleteOptions taskDeleteOptions)

Deletes a task from the specified job. When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.

deleteWithServiceResponseAsync(String jobId, String taskId)

Deletes a task from the specified job. When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.

public Observable<ServiceResponseWithHeaders<Void, TaskDeleteHeaders>> deleteWithServiceResponseAsync(String jobId, String taskId)

参数

jobId
String

The ID of the job from which to delete the task.

taskId
String

The ID of the task to delete.

返回

Observable<ServiceResponseWithHeaders<Void, TaskDeleteHeaders>>

the ServiceResponseWithHeaders object if successful.

例外

IllegalArgumentException

thrown if parameters fail the validation

deleteWithServiceResponseAsync(String jobId, String taskId, TaskDeleteOptions taskDeleteOptions)

Deletes a task from the specified job. When a task is deleted, all of the files in its directory on the compute node where it ran are also deleted (regardless of the retention time). For multi-instance tasks, the delete task operation applies synchronously to the primary task; subtasks and their files are then deleted asynchronously in the background.

public Observable<ServiceResponseWithHeaders<Void, TaskDeleteHeaders>> deleteWithServiceResponseAsync(String jobId, String taskId, TaskDeleteOptions taskDeleteOptions)

参数

jobId
String

The ID of the job from which to delete the task.

taskId
String

The ID of the task to delete.

taskDeleteOptions
TaskDeleteOptions

Additional parameters for the operation

返回

Observable<ServiceResponseWithHeaders<Void, TaskDeleteHeaders>>

the ServiceResponseWithHeaders object if successful.

例外

IllegalArgumentException

thrown if parameters fail the validation

适用于