ramitkataria commented on code in PR #67254:
URL: https://github.com/apache/airflow/pull/67254#discussion_r3291080588


##########
airflow-core/src/airflow/jobs/triggerer_job_runner.py:
##########
@@ -180,6 +181,8 @@ def __init__(
         else:
             raise ValueError(f"Capacity number {capacity!r} is invalid")
         self.queues = queues
+        self._multi_team = conf.getboolean("core", "multi_team")
+        self.team_name = team_name if self._multi_team else None

Review Comment:
   I think that was partial overly defensive programming. I've changed it now 
so that we rely on the CLI



##########
airflow-core/src/airflow/jobs/triggerer_job_runner.py:
##########
@@ -230,6 +233,8 @@ def _execute(self) -> int | None:
                 capacity=self.capacity,
                 logger=log,
                 queues=self.queues,
+                team_name=self.team_name,
+                multi_team=self._multi_team,

Review Comment:
   Thanks for the catch - I think that was an artifact of me moving around some 
stuff. Fixed!



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