[ 
https://issues.apache.org/jira/browse/AIRFLOW-6043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16986033#comment-16986033
 ] 

ASF subversion and git services commented on AIRFLOW-6043:
----------------------------------------------------------

Commit 6fbe6831251dea1294db31a9d0694491f5f57399 in airflow's branch 
refs/heads/master from Igor Khrol
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=6fbe683 ]

[AIRFLOW-6043] Fix bug in UI when "filtering by root" to display section of dag 
 (#6638)

Graph UI is broken when tasks are filtered by root if
root is in the middle of chain of tasks.

The initial of the problem is in `sub_dag` method that keeps references
to the original DAG. `deepcopy` call is optimized and the optimization is
not 100% correct.

> `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)

Reply via email to