delete_job_queue

delete_job_queue(**kwargs)

Deletes the specified job queue. You must first disable submissions for a queue with the UpdateJobQueue operation. All jobs in the queue are eventually terminated when you delete a job queue. The jobs are terminated at a rate of about 16 jobs each second.

It's not necessary to disassociate compute environments from a queue before submitting a DeleteJobQueue request.

See also: AWS API Documentation

Request Syntax

response = client.delete_job_queue(
    jobQueue='string'
)
Parameters
jobQueue (string) --

[REQUIRED]

The short name or full Amazon Resource Name (ARN) of the queue to delete.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

Exceptions

  • Batch.Client.exceptions.ClientException
  • Batch.Client.exceptions.ServerException

Examples

This example deletes the GPGPU job queue.

response = client.delete_job_queue(
    jobQueue='GPGPU',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}