steveahnahn commented on code in PR #61471:
URL: https://github.com/apache/airflow/pull/61471#discussion_r2771999736


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2881,6 +2882,11 @@ def _find_task_instances_without_heartbeats(self, *, 
session: Session) -> list[T
     def _purge_task_instances_without_heartbeats(
         self, task_instances_without_heartbeats: list[TI], *, session: Session
     ) -> None:
+        dag_id_to_team_name: dict[str, str | None] = {}
+        if conf.getboolean("core", "multi_team"):
+            unique_dag_ids = {ti.dag_id for ti in 
task_instances_without_heartbeats}
+            dag_id_to_team_name = 
self._get_team_names_for_dag_ids(unique_dag_ids, session)

Review Comment:
   Addressed in 7ac6892, thank you!



-- 
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]

Reply via email to