View source: R/crew_launcher_aws_batch.R
crew_launcher_aws_batch | R Documentation |
Create an R6
AWS Batch launcher object.
crew_launcher_aws_batch(
name = NULL,
workers = 1L,
seconds_interval = 0.5,
seconds_timeout = 60,
seconds_launch = 1800,
seconds_idle = 300,
seconds_wall = Inf,
tasks_max = Inf,
tasks_timers = 0L,
reset_globals = NULL,
reset_packages = NULL,
reset_options = NULL,
garbage_collection = NULL,
crashes_error = NULL,
tls = crew::crew_tls(mode = "automatic"),
processes = NULL,
r_arguments = c("--no-save", "--no-restore"),
options_metrics = crew::crew_options_metrics(),
options_aws_batch = crew.aws.batch::crew_options_aws_batch(),
aws_batch_config = NULL,
aws_batch_credentials = NULL,
aws_batch_endpoint = NULL,
aws_batch_region = NULL,
aws_batch_job_definition = NULL,
aws_batch_job_queue = NULL,
aws_batch_share_identifier = NULL,
aws_batch_scheduling_priority_override = NULL,
aws_batch_parameters = NULL,
aws_batch_container_overrides = NULL,
aws_batch_node_overrides = NULL,
aws_batch_retry_strategy = NULL,
aws_batch_propagate_tags = NULL,
aws_batch_timeout = NULL,
aws_batch_tags = NULL,
aws_batch_eks_properties_override = NULL
)
name |
Character string, name of the launcher. If the name is
|
workers |
Maximum number of workers to run concurrently
when auto-scaling, excluding task retries and manual calls to |
seconds_interval |
Number of seconds between
polling intervals waiting for certain internal
synchronous operations to complete. In certain cases, exponential
backoff is used with this argument passed to |
seconds_timeout |
Number of seconds until timing
out while waiting for certain synchronous operations to complete,
such as checking |
seconds_launch |
Seconds of startup time to allow.
A worker is unconditionally assumed to be alive
from the moment of its launch until |
seconds_idle |
Maximum number of seconds that a worker can idle
since the completion of the last task. If exceeded, the worker exits.
But the timer does not launch until |
seconds_wall |
Soft wall time in seconds.
The timer does not launch until |
tasks_max |
Maximum number of tasks that a worker will do before
exiting. See the |
tasks_timers |
Number of tasks to do before activating
the timers for |
reset_globals |
Deprecated on 2025-05-30 ( |
reset_packages |
Deprecated on 2025-05-30 ( |
reset_options |
Deprecated on 2025-05-30 ( |
garbage_collection |
Deprecated on 2025-05-30
( |
crashes_error |
Deprecated on 2025-01-13 ( |
tls |
A TLS configuration object from |
processes |
|
r_arguments |
Optional character vector of command line arguments
to pass to |
options_metrics |
Either |
options_aws_batch |
List of options from |
aws_batch_config |
Deprecated.
Use |
aws_batch_credentials |
Deprecated.
Use |
aws_batch_endpoint |
Deprecated.
Use |
aws_batch_region |
Deprecated.
Use |
aws_batch_job_definition |
Deprecated.
Use |
aws_batch_job_queue |
Deprecated.
Use |
aws_batch_share_identifier |
Deprecated.
Use |
aws_batch_scheduling_priority_override |
Deprecated.
Use |
aws_batch_parameters |
Deprecated.
Use |
aws_batch_container_overrides |
Deprecated.
Use |
aws_batch_node_overrides |
Deprecated.
Use |
aws_batch_retry_strategy |
Deprecated.
Use |
aws_batch_propagate_tags |
Deprecated.
Use |
aws_batch_timeout |
Deprecated.
Use |
aws_batch_tags |
Deprecated.
Use |
aws_batch_eks_properties_override |
Deprecated.
Use |
An R6
AWS Batch launcher object.
In order for the AWS Batch crew
plugin to function properly, your IAM
policy needs permission to perform the SubmitJob
and TerminateJob
AWS Batch API calls. For more information on AWS policies and permissions,
please visit
https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html.
The AWS Batch controller and launcher accept many arguments
which start with "aws_batch_"
. These arguments are AWS-Batch-specific
parameters forwarded directly to the submit_job()
method for
the Batch client in the paws.compute
R package
For a full description of each argument, including its meaning and format, please visit https://www.paws-r-sdk.com/docs/batch_submit_job/. The upstream API documentation is at https://docs.aws.amazon.com/batch/latest/APIReference/API_SubmitJob.html and the analogous CLI documentation is at https://docs.aws.amazon.com/cli/latest/reference/batch/submit-job.html.
The actual argument names may vary slightly, depending
on which : for example, the aws_batch_job_definition
argument of
the crew
AWS Batch launcher/controller corresponds to the
jobDefinition
argument of the web API and
paws.compute::batch()$submit_job()
, and both correspond to the
--job-definition
argument of the CLI.
Control verbosity with the paws.log_level
global option in R.
Set to 0 for minimum verbosity and 3 for maximum verbosity.
Other plugin_aws_batch:
crew_class_launcher_aws_batch
,
crew_controller_aws_batch()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.