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 2019/12/02 12:58:00 UTC

[jira] [Resolved] (AIRFLOW-6043) `Dag.sub_dag` method keeps references to origin dag

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

Ash Berlin-Taylor resolved AIRFLOW-6043.
----------------------------------------
    Fix Version/s: 1.10.7
       Resolution: Fixed

> `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
>            Priority: Major
>             Fix For: 1.10.7
>
>
> ```
> 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)