o-nikolas commented on code in PR #75998:
URL: https://github.com/apache/airflow/pull/75998#discussion_r4426001981


##########
task-sdk/src/airflow/sdk/execution_time/context.py:
##########
@@ -205,6 +206,15 @@ async def _amask_connection_secrets(conn: Connection) -> 
None:
     "_preset_connections", default=None
 )
 
+# A plain global rather than a ContextVar, so threads started by task code see 
it too.
+_current_team_name: str | None = None
+
+
+def set_current_team_name(team_name: str | None) -> None:

Review Comment:
   Agreed it should be fixed too. The Dag processor doesn't know its team today 
because the parse request only carries the bundle name, so it needs a new field 
from the manager. I'd like to do that as a follow-up PR to keep this one small, 
I should have mentioned that in the description.



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