You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Igor Khrol (Jira)" <ji...@apache.org> on 2019/11/22 13:44:00 UTC
[jira] [Created] (AIRFLOW-6043) `Dag.sub_dag` method keeps
references to origin dag
Igor Khrol created AIRFLOW-6043:
-----------------------------------
Summary: `Dag.sub_dag` method keeps references to origin dag
Key: AIRFLOW-6043
URL: https://issues.apache.org/jira/browse/AIRFLOW-6043
Project: Apache Airflow
Issue Type: Bug
Components: core, DAG
Affects Versions: 1.10.6
Reporter: Igor Khrol
Assignee: Igor Khrol
```
t1 = DummyOperator(task_id="t1", dag=DAG)
t2 = DummyOperator(task_id="t2", dag=DAG)
t3 = DummyOperator(task_id="t3", dag=DAG)
t1 >> t2
t2 >> t3
```
Graph view is broken for such DAG if `root=t2`.
The root cause of the problem is with `sub_dag` method. `t2` task of subdag when taken from `t1` still has a reference to `t3`.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)