| .. Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| .. http://www.apache.org/licenses/LICENSE-2.0 |
| |
| .. Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| |
| AWS Batch Operators |
| =================== |
| |
| `AWS Batch <https://aws.amazon.com/batch/>`__ enables you to run batch computing workloads on the AWS Cloud. |
| Batch computing is a common way for developers, scientists, and engineers to access large amounts of compute |
| resources. AWS Batch removes the undifferentiated heavy lifting of configuring and managing the required |
| infrastructure. |
| |
| Prerequisite Tasks |
| ------------------ |
| |
| .. include:: _partials/prerequisite_tasks.rst |
| |
| .. _howto/sensor:BatchSensor: |
| |
| AWS Batch Sensor |
| """""""""""""""" |
| |
| To wait on the state of an AWS Batch Job until it reaches a terminal state you can |
| use :class:`~airflow.providers.amazon.aws.sensors.batch.BatchSensor`. |
| |
| .. exampleinclude:: /../../airflow/providers/amazon/aws/example_dags/example_batch.py |
| :language: python |
| :dedent: 4 |
| :start-after: [START howto_sensor_batch] |
| :end-before: [END howto_sensor_batch] |
| |
| .. _howto/operator:BatchOperator: |
| |
| AWS Batch Operator |
| """""""""""""""""" |
| |
| To submit a new AWS Batch Job and monitor it until it reaches a terminal state you can |
| use :class:`~airflow.providers.amazon.aws.operators.batch.BatchOperator`. |
| |
| .. exampleinclude:: /../../airflow/providers/amazon/aws/example_dags/example_batch.py |
| :language: python |
| :dedent: 4 |
| :start-after: [START howto_operator_batch] |
| :end-before: [END howto_operator_batch] |
| |
| Reference |
| --------- |
| |
| For further information, look at: |
| |
| * `Boto3 Library Documentation for Batch <https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/batch.html>`__ |