@@ -697,48 +697,48 @@ def string_lower_type(val):
697697 help = "The access log format for gunicorn logs" ,
698698)
699699
700- # fastapi- api
701- ARG_FASTAPI_API_PORT = Arg (
700+ # api-server
701+ ARG_API_SERVER_PORT = Arg (
702702 ("-p" , "--port" ),
703703 default = 9091 ,
704704 type = int ,
705- help = "The port on which to run the server" ,
705+ help = "The port on which to run the API server" ,
706706)
707- ARG_FASTAPI_API_WORKERS = Arg (
707+ ARG_API_SERVER_WORKERS = Arg (
708708 ("-w" , "--workers" ),
709709 default = 4 ,
710710 type = int ,
711- help = "Number of workers to run the FastAPI API-on " ,
711+ help = "Number of workers to run on the API server " ,
712712)
713- ARG_FASTAPI_API_WORKER_TIMEOUT = Arg (
713+ ARG_API_SERVER_WORKER_TIMEOUT = Arg (
714714 ("-t" , "--worker-timeout" ),
715715 default = 120 ,
716716 type = int ,
717- help = "The timeout for waiting on FastAPI API workers" ,
717+ help = "The timeout for waiting on API server workers" ,
718718)
719- ARG_FASTAPI_API_HOSTNAME = Arg (
719+ ARG_API_SERVER_HOSTNAME = Arg (
720720 ("-H" , "--hostname" ),
721721 default = "0.0.0.0" , # nosec
722- help = "Set the hostname on which to run the web server" ,
722+ help = "Set the hostname on which to run the API server" ,
723723)
724- ARG_FASTAPI_API_ACCESS_LOGFILE = Arg (
724+ ARG_API_SERVER_ACCESS_LOGFILE = Arg (
725725 ("-A" , "--access-logfile" ),
726726 help = "The logfile to store the access log. Use '-' to print to stdout" ,
727727)
728- ARG_FASTAPI_API_ERROR_LOGFILE = Arg (
728+ ARG_API_SERVER_ERROR_LOGFILE = Arg (
729729 ("-E" , "--error-logfile" ),
730730 help = "The logfile to store the error log. Use '-' to print to stderr" ,
731731)
732- ARG_FASTAPI_API_ACCESS_LOGFORMAT = Arg (
732+ ARG_API_SERVER_ACCESS_LOGFORMAT = Arg (
733733 ("-L" , "--access-logformat" ),
734734 help = "The access log format for gunicorn logs" ,
735735)
736- ARG_FASTAPI_API_APPS = Arg (
736+ ARG_API_SERVER_APPS = Arg (
737737 ("--apps" ,),
738738 help = "Applications to run (comma-separated). Default is all. Options: core, execution, all" ,
739739 default = "all" ,
740740)
741- ARG_FASTAPI_API_ALLOW_PROXY_FORWARDING = Arg (
741+ ARG_API_SERVER_ALLOW_PROXY_FORWARDING = Arg (
742742 flags = ("--proxy-headers" ,),
743743 help = "Enable X-Forwarded-Proto, X-Forwarded-For, X-Forwarded-Port to populate remote address info." ,
744744 action = "store_true" ,
@@ -1881,27 +1881,27 @@ class GroupCommand(NamedTuple):
18811881 ),
18821882 ),
18831883 ActionCommand (
1884- name = "fastapi- api" ,
1885- help = "Start an Airflow FastAPI API instance" ,
1886- func = lazy_load_command ("airflow.cli.commands.local_commands.fastapi_api_command.fastapi_api " ),
1884+ name = "api-server " ,
1885+ help = "Start an Airflow API server instance" ,
1886+ func = lazy_load_command ("airflow.cli.commands.local_commands.api_server_command.api_server " ),
18871887 args = (
1888- ARG_FASTAPI_API_PORT ,
1889- ARG_FASTAPI_API_WORKERS ,
1890- ARG_FASTAPI_API_WORKER_TIMEOUT ,
1891- ARG_FASTAPI_API_HOSTNAME ,
1888+ ARG_API_SERVER_PORT ,
1889+ ARG_API_SERVER_WORKERS ,
1890+ ARG_API_SERVER_WORKER_TIMEOUT ,
1891+ ARG_API_SERVER_HOSTNAME ,
18921892 ARG_PID ,
18931893 ARG_DAEMON ,
18941894 ARG_STDOUT ,
18951895 ARG_STDERR ,
1896- ARG_FASTAPI_API_ACCESS_LOGFILE ,
1897- ARG_FASTAPI_API_ERROR_LOGFILE ,
1898- ARG_FASTAPI_API_ACCESS_LOGFORMAT ,
1899- ARG_FASTAPI_API_APPS ,
1896+ ARG_API_SERVER_ACCESS_LOGFILE ,
1897+ ARG_API_SERVER_ERROR_LOGFILE ,
1898+ ARG_API_SERVER_ACCESS_LOGFORMAT ,
1899+ ARG_API_SERVER_APPS ,
19001900 ARG_LOG_FILE ,
19011901 ARG_SSL_CERT ,
19021902 ARG_SSL_KEY ,
19031903 ARG_DEBUG ,
1904- ARG_FASTAPI_API_ALLOW_PROXY_FORWARDING ,
1904+ ARG_API_SERVER_ALLOW_PROXY_FORWARDING ,
19051905 ),
19061906 ),
19071907 ActionCommand (
0 commit comments