Options for the AWS Batch controller.
Usage
crew_options_aws_batch(
job_definition = "example",
job_queue = "example",
cpus = NULL,
gpus = NULL,
memory = NULL,
memory_units = "gigabytes",
config = list(),
credentials = list(),
endpoint = NULL,
region = NULL,
share_identifier = NULL,
scheduling_priority_override = NULL,
parameters = NULL,
container_overrides = NULL,
node_overrides = NULL,
retry_strategy = NULL,
propagate_tags = NULL,
timeout = NULL,
tags = NULL,
eks_properties_override = NULL,
verbose = FALSE
)
Arguments
- job_definition
Character of length 1, name of the AWS Batch job definition to use. There is no default for this argument, and a job definition must be created prior to running the controller. Please see https://docs.aws.amazon.com/batch/ for details.
To create a job definition, you will need to create a Docker-compatible image which can run R and
crew
. You may which to inherit from the images at https://github.com/rocker-org/rocker-versioned2.- job_queue
Character of length 1, name of the AWS Batch job queue to use. There is no default for this argument, and a job queue must be created prior to running the controller. Please see https://docs.aws.amazon.com/batch/ for details.
- cpus
Positive numeric vector, usually with a single element. Supply a vector to make
cpus
a retryable option (see the "Retryable options" section for details).cpus
is the number of virtual CPUs to request per job. Can beNULL
to go with the defaults in the job definition. Ignored ifcontainer_overrides
is notNULL
.- gpus
Positive numeric vector, usually a single element. Supply a vector to make
gpus
a retryable option (see the "Retryable options" section for details).gpus
is the number of GPUs to request per job. Can beNULL
to go with the defaults in the job definition. Ignored ifcontainer_overrides
is notNULL
.- memory
Positive numeric vector number, usually with a single element. Supply a vector to make
memory
a retryable option (see the "Retryable options" section for details).memory
is the amount of random access memory (RAM) to request per job. Choose the units of memory with thememory_units
argument. Fargate instances can only be certain discrete values of mebibytes, so please choosememory_units = "mebibytes"
in that case. Thememory
argument can beNULL
to go with the defaults in the job definition. Ignored ifcontainer_overrides
is notNULL
.- memory_units
Character string, units of memory of the
memory
argument. Can be"gigabytes"
or"mebibytes"
. Fargate instances can only be certain discrete values of mebibytes, so please choosememory_units = "mebibytes"
in that case.- config
Named list,
config
argument ofpaws.compute::batch()
with optional configuration details.- credentials
Named list.
credentials
argument ofpaws.compute::batch()
with optional credentials (if not already provided through environment variables such asAWS_ACCESS_KEY_ID
).- endpoint
Character of length 1.
endpoint
argument ofpaws.compute::batch()
with the endpoint to send HTTP requests.- region
Character of length 1.
region
argument ofpaws.compute::batch()
with an AWS region string such as"us-east-2"
.NULL
or character of length 1. For details, visit https://www.paws-r-sdk.com/docs/batch_submit_job/ and the "AWS arguments" sections of this help file.- scheduling_priority_override
NULL
or integer of length 1. For details, visit https://www.paws-r-sdk.com/docs/batch_submit_job/ and the "AWS arguments" sections of this help file.- parameters
NULL
or a nonempty list. For details, visit https://www.paws-r-sdk.com/docs/batch_submit_job/ and the "AWS arguments" sections of this help file.- container_overrides
NULL
or a nonempty named list of fields to override in the container specified in the job definition. Any overrides for thecommand
field are ignored becausecrew.aws.batch
needs to override the command to run thecrew
worker. For more details, visit https://www.paws-r-sdk.com/docs/batch_submit_job/ and the "AWS arguments" sections of this help file.- node_overrides
NULL
or a nonempty named list. For more details, visit https://www.paws-r-sdk.com/docs/batch_submit_job/ and the "AWS arguments" sections of this help file.- retry_strategy
NULL
or a nonempty named list. For more details, visit https://www.paws-r-sdk.com/docs/batch_submit_job/ and the "AWS arguments" sections of this help file.NULL
or a logical of length 1. For more details, visit https://www.paws-r-sdk.com/docs/batch_submit_job/ and the "AWS arguments" sections of this help file.- timeout
NULL
or a nonempty named list. For more details, visit https://www.paws-r-sdk.com/docs/batch_submit_job/ and the "AWS arguments" sections of this help file.NULL
or a nonempty named list. For more details, visit https://www.paws-r-sdk.com/docs/batch_submit_job/ and the "AWS arguments" sections of this help file.- eks_properties_override
NULL
or a nonempty named list. For more details, visit https://www.paws-r-sdk.com/docs/batch_submit_job/ and the "AWS arguments" sections of this help file.- verbose
TRUE
to print informative console messages,FALSE
otherwise.
Retryable options
Arguments cpus
, gpus
, and memory
are retryable options.
Each of these arguments be a vector where each successive element is
used during a retry if the worker previously exited without
completing all its assigned tasks.
The last element of the vector is used if there are more retries than
the length of the vector.
Control the number of allowable retries with crashes_error
argument of the controller.