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 8d88340fc33 Fix api server command (#48062)
8d88340fc33 is described below

commit 8d88340fc33502edf7e1b7e9d777bc2ca845924d
Author: Brent Bovenzi <[email protected]>
AuthorDate: Fri Mar 21 11:43:21 2025 -0400

    Fix api server command (#48062)
---
 .../src/airflow/cli/commands/local_commands/api_server_command.py   | 2 +-
 .../unit/cli/commands/local_commands/test_api_server_command.py     | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/airflow-core/src/airflow/cli/commands/local_commands/api_server_command.py 
b/airflow-core/src/airflow/cli/commands/local_commands/api_server_command.py
index 25b40d36d15..a10de9d27df 100644
--- a/airflow-core/src/airflow/cli/commands/local_commands/api_server_command.py
+++ b/airflow-core/src/airflow/cli/commands/local_commands/api_server_command.py
@@ -64,7 +64,7 @@ def api_server(args):
         run_args = [
             "fastapi",
             "dev",
-            "airflow/api_fastapi/main.py",
+            "airflow-core/src/airflow/api_fastapi/main.py",
             "--port",
             str(args.port),
             "--host",
diff --git 
a/airflow-core/tests/unit/cli/commands/local_commands/test_api_server_command.py
 
b/airflow-core/tests/unit/cli/commands/local_commands/test_api_server_command.py
index 29678b46312..4ea314bf826 100644
--- 
a/airflow-core/tests/unit/cli/commands/local_commands/test_api_server_command.py
+++ 
b/airflow-core/tests/unit/cli/commands/local_commands/test_api_server_command.py
@@ -41,7 +41,7 @@ class TestCliApiServer(_CommonCLIGunicornTestClass):
                 [
                     "fastapi",
                     "dev",
-                    "airflow/api_fastapi/main.py",
+                    "airflow-core/src/airflow/api_fastapi/main.py",
                     "--port",
                     "9092",
                     "--host",
@@ -53,7 +53,7 @@ class TestCliApiServer(_CommonCLIGunicornTestClass):
                 [
                     "fastapi",
                     "dev",
-                    "airflow/api_fastapi/main.py",
+                    "airflow-core/src/airflow/api_fastapi/main.py",
                     "--port",
                     "9092",
                     "--host",
@@ -107,7 +107,7 @@ class TestCliApiServer(_CommonCLIGunicornTestClass):
                 [
                     "fastapi",
                     "dev",
-                    "airflow/api_fastapi/main.py",
+                    "airflow-core/src/airflow/api_fastapi/main.py",
                     "--port",
                     port,
                     "--host",

Reply via email to