You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/09/11 15:27:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16927662#comment-16927662 ] 

ASF GitHub Bot commented on AIRFLOW-4490:
-----------------------------------------

stale[bot] commented on pull request #5387: [AIRFLOW-4490] add dag_run_conf variable to context
URL: https://github.com/apache/airflow/pull/5387
 
 
   
 
----------------------------------------------------------------
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:
users@infra.apache.org


> 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
(v8.3.2#803003)