This is an automated email from the ASF dual-hosted git repository.

potiuk 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 0bbe92ff3fe Reorder fastapi app list checks  (#56812)
0bbe92ff3fe is described below

commit 0bbe92ff3fe210e2b9b69bc531ff364ca2575bf4
Author: Kalyan R <[email protected]>
AuthorDate: Sat Oct 18 16:55:42 2025 +0530

    Reorder fastapi app list checks  (#56812)
    
    * refactor
    
    * run prek
---
 airflow-core/src/airflow/api_fastapi/app.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow-core/src/airflow/api_fastapi/app.py 
b/airflow-core/src/airflow/api_fastapi/app.py
index cac194f4393..e74863dd3c1 100644
--- a/airflow-core/src/airflow/api_fastapi/app.py
+++ b/airflow-core/src/airflow/api_fastapi/app.py
@@ -86,13 +86,13 @@ def create_app(apps: str = "all") -> FastAPI:
 
     dag_bag = create_dag_bag()
 
-    if "execution" in apps_list or "all" in apps_list:
+    if "all" in apps_list or "execution" 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:
+    if "all" in apps_list or "core" in apps_list:
         app.state.dag_bag = dag_bag
         init_plugins(app)
         init_auth_manager(app)

Reply via email to