Alok-kumar-priyadarshi commented on code in PR #61310:
URL: https://github.com/apache/airflow/pull/61310#discussion_r2751295984


##########
airflow-core/src/airflow/api_fastapi/app.py:
##########
@@ -57,6 +58,7 @@
 
 class _AuthManagerState:
     instance: BaseAuthManager | None = None
+    lock = threading.RLock()

Review Comment:
   Thanks for the review and the suggestion!
   
   That makes sense — I’ll refactor this to centralize the thread-safe 
initialization behind a single accessor and add a unit test covering concurrent 
auth/token requests.
   
   I’ll push an update shortly.



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