seanghaeli commented on code in PR #75998:
URL: https://github.com/apache/airflow/pull/75998#discussion_r4429278499
##########
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:
Similar gap with executor callbacks also causing the callback to still get
the global value, noting for future follow-up. I'll open an issue for it since
I think I know how to handle it for callbacks
--
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]