stephen-bracken commented on code in PR #69768:
URL: https://github.com/apache/airflow/pull/69768#discussion_r3655620589


##########
airflow-core/src/airflow/models/pool.py:
##########
@@ -121,6 +121,10 @@ def get_default_pool(*, session: Session = NEW_SESSION) -> 
Pool | None:
         """
         return Pool.get_pool(Pool.DEFAULT_POOL_NAME, session=session)
 
+    @staticmethod
+    def get_default_team_pool_name(team_name: str) -> str:
+        return f"default_pool_{team_name}"

Review Comment:
   We are assuming that a team name will always be a valid suffix to a pool 
name, should we enforce this in `Team.name`?



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