jedcunningham commented on code in PR #26188:
URL: https://github.com/apache/airflow/pull/26188#discussion_r964437252
##########
airflow/www/views.py:
##########
@@ -597,15 +597,16 @@ def collect_edges(task_group):
edges = set()
def get_downstream(task):
- tasks_to_trace = task.downstream_list
+ tasks_to_trace = {(task, frozenset(task.downstream_list))}
while tasks_to_trace:
- tasks_to_trace_next: Set[str] = set()
- for child in tasks_to_trace:
- edge = (task.task_id, child.task_id)
- if edge in edges:
- continue
- tasks_to_trace_next.update(child.downstream_list)
- edges.add(edge)
+ tasks_to_trace_next: Set[tuple] = set()
+ for task, children in tasks_to_trace:
Review Comment:
I don't believe it does. Good call, I like that even better, thanks!
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]