if (FALSE) {
# This example creates a job queue called LowPriority that uses the M4Spot
# compute environment.
svc$create_job_queue(
computeEnvironmentOrder = list(
list(
computeEnvironment = "M4Spot",
order = 1L
)
),
jobQueueName = "LowPriority",
priority = 1L,
state = "ENABLED"
)
# 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.
svc$create_job_queue(
computeEnvironmentOrder = list(
list(
computeEnvironment = "C4OnDemand",
order = 1L
),
list(
computeEnvironment = "M4Spot",
order = 2L
)
),
jobQueueName = "HighPriority",
priority = 10L,
state = "ENABLED"
)
}
Run the code above in your browser using DataLab