vincbeck commented on code in PR #73561:
URL: https://github.com/apache/airflow/pull/73561#discussion_r4086474628


##########
airflow-core/src/airflow/jobs/triggerer_job_runner.py:
##########
@@ -273,7 +273,9 @@ def _execute(self) -> int | None:
                 capacity=self.capacity,
                 logger=log,
                 queues=self.queues,
-                team_name=self.job.team_name,
+                # A triggerer is started with at most one ``--team-name``, so 
while a Job can serve
+                # several teams this one never does, and the runner stays 
scoped to a single team.
+                team_name=next(iter(self.job.team_names), None),

Review Comment:
   I agree



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