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


##########
airflow-core/src/airflow/cli/commands/api_server_command.py:
##########
@@ -157,41 +141,51 @@ def _run_api_server(args, apps: str, num_workers: int, 
worker_timeout: int, prox
     """Run the API server using the configured server type."""
     server_type = conf.get("api", "server_type", fallback="uvicorn").lower()
 
+    run = _run_api_server_with_uvicorn
     if server_type == "gunicorn":
         try:
             import gunicorn  # noqa: F401
+
+            run = _run_api_server_with_gunicorn
         except ImportError:
+            server_type = "uvicorn"
             raise AirflowConfigException(

Review Comment:
   Oh yes. But only cos i put it in the wrong place



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