This is an automated email from the ASF dual-hosted git repository.
amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 9b61af17835 Removing init_dagbag from fastapi app (#49285)
9b61af17835 is described below
commit 9b61af17835b4af34ecb1161123eb9fc4af5afa4
Author: Amogh Desai <[email protected]>
AuthorDate: Tue Apr 15 17:23:16 2025 +0530
Removing init_dagbag from fastapi app (#49285)
---
airflow-core/src/airflow/api_fastapi/core_api/init_dagbag.py | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/airflow-core/src/airflow/api_fastapi/core_api/init_dagbag.py
b/airflow-core/src/airflow/api_fastapi/core_api/init_dagbag.py
index fc23a2f7e06..720276d054b 100644
--- a/airflow-core/src/airflow/api_fastapi/core_api/init_dagbag.py
+++ b/airflow-core/src/airflow/api_fastapi/core_api/init_dagbag.py
@@ -27,12 +27,3 @@ def get_dag_bag() -> DagBag:
if os.environ.get("SKIP_DAGS_PARSING") == "True":
return DagBag(os.devnull, include_examples=False)
return DagBag(DAGS_FOLDER, read_dags_from_db=True)
-
-
-def init_dagbag(app):
- """
- Create global DagBag for webserver and API.
-
- To access it use ``flask.current_app.dag_bag``.
- """
- app.dag_bag = get_dag_bag()