You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Richard Postelnik (JIRA)" <ji...@apache.org> on 2019/07/11 14:48:00 UTC
[jira] [Created] (AIRFLOW-4933) DAG init causes side effects on
default args
Richard Postelnik created AIRFLOW-4933:
------------------------------------------
Summary: DAG init causes side effects on default args
Key: AIRFLOW-4933
URL: https://issues.apache.org/jira/browse/AIRFLOW-4933
Project: Apache Airflow
Issue Type: Bug
Components: DAG
Affects Versions: 1.10.3
Reporter: Richard Postelnik
I have multiple dags defined in one file (understand this is not recommended). I shared the same default_args between two dags and found that the latter dag was running on UTC instead of the timezone of the start_date. Debugging, I found the following line convert the start_date to UTC in the DAG init and it must be doing it in-place. A deepcopy in the init should resolve this and allow a reusable set of defaults.
[https://github.com/apache/airflow/blob/master/airflow/models/dag.py#L250]
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)