You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2018/07/09 12:43:00 UTC
[jira] [Commented] (AIRFLOW-2727) Utils functions to create and
delete connections
[ https://issues.apache.org/jira/browse/AIRFLOW-2727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16536870#comment-16536870 ]
Ash Berlin-Taylor commented on AIRFLOW-2727:
--------------------------------------------
Can you give an example of where BashOperator is necessary, and how running inside a Docker container changes anything.
Are you aware you can define some connections entirely via environment variables {{ARIFLOW_CONN_FOO}} - some because if the connection needs anything in the "extra" field it cant currently be done.
> Utils functions to create and delete connections
> ------------------------------------------------
>
> Key: AIRFLOW-2727
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2727
> Project: Apache Airflow
> Issue Type: New Feature
> Components: utils
> Reporter: Tejas
> Priority: Minor
> Fix For: 1.10
>
>
> Currently Airflow CLI has options to add / delete connections. However, in order to create connection based on conditions, BashOperator becomes necessary.
> In specific cases where the airflow is running inside Docker containers, running the command becomes tedious.
> The same functionality can be re-built in [utils/db.py|https://github.com/apache/incubator-airflow/blob/master/airflow/utils/db.py] and reused in cli.py. This makes the create and delete connection functions available easily as functions in DAGs.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)