ashb commented on code in PR #49045:
URL: https://github.com/apache/airflow/pull/49045#discussion_r2037406154


##########
airflow-core/src/airflow/api_fastapi/app.py:
##########
@@ -81,13 +81,16 @@ def create_app(apps: str = "all") -> FastAPI:
         root_path=API_ROOT_PATH.removesuffix("/"),
     )
 
+    dag_bag = get_dag_bag()
+
     if "execution" in apps_list or "all" in apps_list:
         task_exec_api_app = create_task_execution_api_app()
+        task_exec_api_app.state.dag_bag = dag_bag
         init_error_handlers(task_exec_api_app)
         app.mount("/execution", task_exec_api_app)
 
     if "core" in apps_list or "all" in apps_list:
-        init_dag_bag(app)

Review Comment:
   You should delete that function then if we don't use it anymore



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