uranusjr commented on code in PR #61471:
URL: https://github.com/apache/airflow/pull/61471#discussion_r2767640350
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2925,7 +2931,11 @@ def _purge_task_instances_without_heartbeats(
request,
)
self.job.executor.send_callback(request)
- if (executor := self._try_to_load_executor(ti, session)) is None:
+ if (
+ executor := self._try_to_load_executor(
+ ti, session, team_name=dag_id_to_team_name.get(ti.dag_id,
NOTSET)
+ )
+ ) is None:
Review Comment:
Let’s split this to a separate `=` statement and then `if executor is None`,
this is too long IMO.
--
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]