You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Alister Cordiner (Jira)" <ji...@apache.org> on 2019/09/20 02:44:00 UTC

[jira] [Created] (AIRFLOW-5525) Extra TaskTemplate and ContainerSpec arguments in SwarmOperator

Alister Cordiner created AIRFLOW-5525:
-----------------------------------------

             Summary: Extra TaskTemplate and ContainerSpec arguments in SwarmOperator
                 Key: AIRFLOW-5525
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5525
             Project: Apache Airflow
          Issue Type: Improvement
          Components: operators
    Affects Versions: 2.0.0
            Reporter: Alister Cordiner


A new {{DockerSwarmOperator}} was added in AIRFLOW-4843. It would be very useful to add the ability to pass extra arguments to the {{TaskTemplate}} and {{ContainerSpec}}. For example, it would be handy to be able to specify labels and placement constraints.

In particular, the following would be useful for my purposes (but generic functionality to add any arguments would also be very useful):
 * {{TaskTemplate.Placement}} - Placement constraints
 * {{TaskTemplate.Resources}} - Memory limits and reservations
 * {{ContainerSpec.labels}} - Container labels



--
This message was sent by Atlassian Jira
(v8.3.4#803005)