From 6d8342e78c6b6546845a7d2d5ba0a761af73d5f0 Mon Sep 17 00:00:00 2001 From: hubert-pietron <94397721+hubert-pietron@users.noreply.github.com> Date: Thu, 27 Jan 2022 06:20:17 +0100 Subject: [PATCH] Removed duplicated dag_run join in Dag.get_task_instances() (#20591) Co-authored-by: hubert-pietron (cherry picked from commit 960f573615b5357677c10bd9f7ec11811a0355c6) --- airflow/models/dag.py | 1 - 1 file changed, 1 deletion(-) diff --git a/airflow/models/dag.py b/airflow/models/dag.py index 2a08d269b30d7..477e597b49129 100644 --- a/airflow/models/dag.py +++ b/airflow/models/dag.py @@ -1343,7 +1343,6 @@ def get_task_instances( as_pk_tuple=False, session=session, ) - .join(TaskInstance.dag_run) .order_by(DagRun.execution_date) .all() )