:orphan: ########## AWS Batch ########## Executing Batch Job ======================= Flyte backend can be connected with batch. Once enabled, it allows you to run regular task on AWS batch. This section provides a guide on how to use the AWS Batch Plugin using flytekit python. Installation ------------ To use the flytekit batch plugin simply run the following: .. prompt:: bash pip install flytekitplugins-awsbatch Configuring the backend to get AWS Batch working ------------------------------------------------ [Follow this guide to setting up the AWS Batch Plugin](https://docs.flyte.org/en/latest/deployment/plugin_setup/aws/batch.html#deployment-plugin-setup-aws-array) Quick Start ------------------------ This plugin allows you to run batch tasks on AWS and only requires you to change a few lines of code. We can then move workflow execution from Kubernetes to AWS. .. testcode:: awsbatch-quickstart from flytekitplugins.awsbatch import AWSBatchConfig config = AWSBatch( parameters={"codec": "mp4"}, platformCapabilities="EC2", propagateTags=True, retryStrategy={"attempts": 10}, tags={"hello": "world"}, timeout={"attemptDurationSeconds": 60}, ) @task(task_config=config) def t1(a: int) -> str: return str(a) .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto/integrations/aws/batch/images/thumb/sphx_glr_batch_thumb.png :alt: AWS Batch :ref:`sphx_glr_auto_integrations_aws_batch_batch.py` .. raw:: html
AWS Batch
.. raw:: html
.. toctree:: :hidden: /auto/integrations/aws/batch/batch .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: batch_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: batch_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_