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/31 12:34:00 UTC

[jira] [Commented] (AIRFLOW-2824) Disable loading of default connections via airflow config

    [ https://issues.apache.org/jira/browse/AIRFLOW-2824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16563592#comment-16563592 ] 

Ash Berlin-Taylor commented on AIRFLOW-2824:
--------------------------------------------

It is not well documented, but the answer I use for this is to never run {{airflow initd}} -- that is what creates the sample connections. Instead I only ever run {{airflow upgradedb}} which will apply missing migrations but not create any "example" objects. {{upgradedb}} will work on an empty DB just fine.

Perhaps the fix for this is a doc patch?

> Disable loading of default connections via airflow config
> ---------------------------------------------------------
>
>                 Key: AIRFLOW-2824
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2824
>             Project: Apache Airflow
>          Issue Type: Wish
>            Reporter: Felix Uellendall
>            Priority: Major
>
> I would love to have a variable I can set in the airflow.cfg, like the DAG examples have, to not load the default connections.
> Either by using {{load_examples}} that is already [there|https://github.com/apache/incubator-airflow/blob/dfa7b26ddaca80ee8fd9915ee9f6eac50fac77f6/airflow/config_templates/default_airflow.cfg#L128] for loading dag examples or by a new one like {{load_default_connections}} to check if the user wants to have it or not.
> The implementation of the default connections starts [here|https://github.com/apache/incubator-airflow/blob/9e1d8ee837ea2c23e828d070b6a72a6331d98602/airflow/utils/db.py#L94]
> Let me know what you guys think of it, pls. :)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)