kalluripradeep opened a new pull request, #64418: URL: https://github.com/apache/airflow/pull/64418
Closes #64151. **What changed:** Reuses the persistent/global `Flask` application and `AppBuilder` context instantiated on startup (`get_fastapi_app()`) during the `/auth/token` endpoints instead of generating new AppBuilder instances per request via `get_application_builder()`. **Why it matters:** This prevents the FastAPI context manager from racing against concurrent requests and clearing the singleton's cached `security_manager` property or mutating it with a CLI-oriented volatile AppBuilder setup, ultimately resolving the 500 `AppBuilder is not initialized` exceptions. -- 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]
