Skip to content

Conversation

@jscheffl
Copy link
Contributor

Another small increment to remove global statements for PR #58116

This removes global statement from app.py where the FastAPI application instance and the current Auth Manager were stored as global, smelled a bit like a public interfaces which it should not. Using functools.cache() to prevent usage of global variables.

global is evil.

@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Dec 23, 2025
@jscheffl jscheffl force-pushed the bugfix/remove-global-from-fastapi-app branch from 0e1403c to dae543d Compare December 24, 2025 15:50
@jscheffl jscheffl merged commit 6efaacf into apache:main Dec 25, 2025
356 of 358 checks passed
amoghrajesh pushed a commit to astronomer/airflow that referenced this pull request Dec 29, 2025
* Remove global from FastAPI app.py

* Remove global from FastAPI app.py
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Jan 2, 2026
* Remove global from FastAPI app.py

* Remove global from FastAPI app.py
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
* Remove global from FastAPI app.py

* Remove global from FastAPI app.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants