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 scalar, number of virtual CPUs to request per job. Can be
NULLto go with the defaults in the job definition. Ignored ifcontainer_overridesis notNULL.- gpus
Positive numeric scalar, number of GPUs to request per job. Can be
NULLto go with the defaults in the job definition. Ignored ifcontainer_overridesis notNULL.- memory
Positive numeric scalar, amount of random access memory (RAM) to request per job. Choose the units of memory with the
memory_unitsargument. Fargate instances can only be certain discrete values of mebibytes, so please choosememory_units = "mebibytes"in that case. Thememoryargument can beNULLto go with the defaults in the job definition. Ignored ifcontainer_overridesis notNULL.- memory_units
Character string, units of memory of the
memoryargument. 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,
configargument ofpaws.compute::batch()with optional configuration details.- credentials
Named list.
credentialsargument ofpaws.compute::batch()with optional credentials (if not already provided through environment variables such asAWS_ACCESS_KEY_ID).- endpoint
Character of length 1.
endpointargument ofpaws.compute::batch()with the endpoint to send HTTP requests.- region
Character of length 1.
regionargument ofpaws.compute::batch()with an AWS region string such as"us-east-2".NULLor 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
NULLor 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
NULLor 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
NULLor a nonempty named list of fields to override in the container specified in the job definition. Any overrides for thecommandfield are ignored becausecrew.aws.batchneeds to override the command to run thecrewworker. 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
NULLor 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
NULLor 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.NULLor 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
NULLor 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.NULLor 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
NULLor 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
TRUEto print informative console messages,FALSEotherwise.
