Jobs.deleteAsync Method

Definition

Overloads

deleteAsync(String jobId)

Deletes a job. Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.

deleteAsync(String jobId, final ServiceCallback<Void> serviceCallback)

Deletes a job. Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.

deleteAsync(String jobId, JobDeleteOptions jobDeleteOptions)

Deletes a job. Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.

deleteAsync(String jobId, JobDeleteOptions jobDeleteOptions, final ServiceCallback<Void> serviceCallback)

Deletes a job. Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.

deleteAsync(String jobId)

Deletes a job. Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.

public Observable<Void> deleteAsync(String jobId)
Parameters
jobId
String

The ID of the job to delete.

Returns
Observable<Void>

the ServiceResponseWithHeaders object if successful.

Exceptions
IllegalArgumentException

thrown if parameters fail the validation

deleteAsync(String jobId, final ServiceCallback<Void> serviceCallback)

Deletes a job. Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.

public ServiceFuture<Void> deleteAsync(String jobId, final ServiceCallback<Void> serviceCallback)
Parameters
jobId
String

The ID of the job to delete.

serviceCallback
final ServiceCallback<Void>

the async ServiceCallback to handle successful and failed responses.

Returns
ServiceFuture<Void>

the ServiceFuture object

Exceptions
IllegalArgumentException

thrown if parameters fail the validation

deleteAsync(String jobId, JobDeleteOptions jobDeleteOptions)

Deletes a job. Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.

public Observable<Void> deleteAsync(String jobId, JobDeleteOptions jobDeleteOptions)
Parameters
jobId
String

The ID of the job to delete.

jobDeleteOptions
JobDeleteOptions

Additional parameters for the operation

Returns
Observable<Void>

the ServiceResponseWithHeaders object if successful.

Exceptions
IllegalArgumentException

thrown if parameters fail the validation

deleteAsync(String jobId, JobDeleteOptions jobDeleteOptions, final ServiceCallback<Void> serviceCallback)

Deletes a job. Deleting a job also deletes all tasks that are part of that job, and all job statistics. This also overrides the retention period for task data; that is, if the job contains tasks which are still retained on compute nodes, the Batch services deletes those tasks' working directories and all their contents. When a Delete Job request is received, the Batch service sets the job to the deleting state. All update operations on a job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the job is being deleted.

public ServiceFuture<Void> deleteAsync(String jobId, JobDeleteOptions jobDeleteOptions, final ServiceCallback<Void> serviceCallback)
Parameters
jobId
String

The ID of the job to delete.

jobDeleteOptions
JobDeleteOptions

Additional parameters for the operation

serviceCallback
final ServiceCallback<Void>

the async ServiceCallback to handle successful and failed responses.

Returns
ServiceFuture<Void>

the ServiceFuture object

Exceptions
IllegalArgumentException

thrown if parameters fail the validation