**To create a low priority job queue with a single compute environment** This example creates a job queue called `LowPriority` that uses the `M4Spot` compute environment. Command:: aws batch create-job-queue --cli-input-json file://<path_to_json_file>/LowPriority.json JSON file format:: { "jobQueueName": "LowPriority", "state": "ENABLED", "priority": 10, "computeEnvironmentOrder": [ { "order": 1, "computeEnvironment": "M4Spot" } ] } Output:: { "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/LowPriority", "jobQueueName": "LowPriority" } **To create a high priority job queue with two compute environments** This example creates a job queue called `HighPriority` that uses the `C4OnDemand` compute environment with an order of 1 and the `M4Spot` compute environment with an order of 2. The scheduler will attempt to place jobs on the `C4OnDemand` compute environment first. Command:: aws batch create-job-queue --cli-input-json file://<path_to_json_file>/HighPriority.json JSON file format:: { "jobQueueName": "HighPriority", "state": "ENABLED", "priority": 1, "computeEnvironmentOrder": [ { "order": 1, "computeEnvironment": "C4OnDemand" }, { "order": 2, "computeEnvironment": "M4Spot" } ] } Output:: { "jobQueueArn": "arn:aws:batch:us-east-1:012345678910:job-queue/HighPriority", "jobQueueName": "HighPriority" }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
cancel-job.rst | File | 183 B | 0644 |
|
create-compute-environment.rst | File | 2.55 KB | 0644 |
|
create-job-queue.rst | File | 1.49 KB | 0644 |
|
delete-compute-environment.rst | File | 180 B | 0644 |
|
delete-job-queue.rst | File | 128 B | 0644 |
|
deregister-job-definition.rst | File | 170 B | 0644 |
|
describe-compute-environments.rst | File | 1.49 KB | 0644 |
|
describe-job-definitions.rst | File | 925 B | 0644 |
|
describe-job-queues.rst | File | 737 B | 0644 |
|
describe-jobs.rst | File | 1.14 KB | 0644 |
|
list-jobs.rst | File | 714 B | 0644 |
|
register-job-definition.rst | File | 468 B | 0644 |
|
submit-job.rst | File | 321 B | 0644 |
|
terminate-job.rst | File | 193 B | 0644 |
|
update-compute-environment.rst | File | 381 B | 0644 |
|
update-job-queue.rst | File | 286 B | 0644 |
|