airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [airflow] feluelle commented on a change in pull request #7030: [AIRFLOW-6440][AIP-29][WIP] Add AWS Fargate Executor
Date Tue, 07 Jan 2020 12:39:27 GMT
feluelle commented on a change in pull request #7030: [AIRFLOW-6440][AIP-29][WIP] Add AWS Fargate

 File path: airflow/executors/
 @@ -0,0 +1,327 @@
+# 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
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+"""AWS Fargate Executor."""
+import time
+from typing import Dict, List, Optional, Callable
+from .base_executor import BaseExecutor, TaskInstanceKeyType, CommandType
+from airflow.utils.module_loading import import_string
+from airflow.utils.state import State
+from airflow import configuration
+import boto3  # Additional Requirement from base-airflow
+from boto3.exceptions import Boto3Error
+ExecutorConfigFunctionType = Callable[[CommandType], dict]
+class FargateExecutor(BaseExecutor):
+    """
+    The Airflow Scheduler create a shell command, and passes it to the executor. This Fargate
Executor simply runs
+    said airflow command on a remote AWS Fargate Cluster with an task-definition configured
with the same containers as
+    the Scheduler. It then periodically checks in with the launched tasks (via task-arns)
to determine the status.
+    Prerequisite: proper configuration of boto3 library
+    See
for credential management
 Review comment:
       .. seealso::
for credential management
   You can use rst seealso to generate colored boxes:

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

View raw message