You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Omer Yampel (JIRA)" <ji...@apache.org> on 2019/05/10 00:19:01 UTC

[jira] [Work started] (AIRFLOW-4490) dag_run.conf should be an empty dictionary by default

     [ https://issues.apache.org/jira/browse/AIRFLOW-4490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on AIRFLOW-4490 started by Omer Yampel.
--------------------------------------------
> dag_run.conf should be an empty dictionary by default
> -----------------------------------------------------
>
>                 Key: AIRFLOW-4490
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4490
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: DagRun
>            Reporter: Omer Yampel
>            Assignee: Omer Yampel
>            Priority: Trivial
>
> Currently, if no conf is provided when running a dag, the `dag_run.conf` instance is None. 
> When a DAG might not always be triggered with a configuration, this leads to needing to handle an "empty" configuration like this :
> {code}
> {{ if dag_run.conf and dag_run.conf.get('value') and ... }}
> {code}
> If dag_run.conf was an empty dictionary by default, this could simply become:
> {code}
> {{ if dag_run.conf.get('key') and ....}}
> {code}
>  



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