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

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

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

ashb commented on pull request #6638: [AIRFLOW-6043] Update dag reference to all tasks in sub_dag
URL: https://github.com/apache/airflow/pull/6638
 
 
   
 
----------------------------------------------------------------
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.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
>
> ```
> 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)