kimyoungi99 commented on PR #62214:
URL: https://github.com/apache/airflow/pull/62214#issuecomment-3939704568

   Sorry for the extra CI round — my Breeze setup was slightly off so I thought 
the previous push would pass. First-time contributor here, bear with me :)
   
   The singleton's `@cached_property` on `security_manager` was causing 
`AUTH_USER_REGISTRATION` KeyErrors when multiple Flask apps are created in the 
same process (e.g., CLI commands calling `get_application_builder()` 
internally). Fixed by:
   
   - Clearing the auth manager singleton in `get_application_builder()` before 
creating a new Flask app
   - Adding `purge_cached_app()` to test fixtures that call 
`application.create_app()` with a different auth manager config
   
   Verified locally using Breeze (`--backend postgres --python 3.10`). All 
green.


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