Skip to main content

prefect_aws.batch

Tasks for interacting with AWS Batch

Functions

abatch_submit

Asynchronously submit a job to the AWS Batch job service. Args:
  • job_name: The AWS batch job name.
  • job_queue: Name of the AWS batch job queue.
  • job_definition: The AWS batch job definition.
  • aws_credentials: Credentials to use for authentication with AWS.
  • **batch_kwargs: Additional keyword arguments to pass to the boto3 submit_job function. See the documentation for submit_job for more details.
Returns:
  • The id corresponding to the job.

batch_submit

Submit a job to the AWS Batch job service. Args:
  • job_name: The AWS batch job name.
  • job_queue: Name of the AWS batch job queue.
  • job_definition: The AWS batch job definition.
  • aws_credentials: Credentials to use for authentication with AWS.
  • **batch_kwargs: Additional keyword arguments to pass to the boto3 submit_job function. See the documentation for submit_job for more details.
Returns:
  • The id corresponding to the job.