You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2025/12/20 09:59:51 UTC
(airflow) branch main updated: Add compat deprecation handling for [webserver/base_url] (#59659)
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 3c65b12acc4 Add compat deprecation handling for [webserver/base_url] (#59659)
3c65b12acc4 is described below
commit 3c65b12acc4f2e9601f9c0b7c63d7a184098bf85
Author: Jason(Zhe-You) Liu <68...@users.noreply.github.com>
AuthorDate: Sat Dec 20 17:59:44 2025 +0800
Add compat deprecation handling for [webserver/base_url] (#59659)
---
.../docs/administration-and-deployment/production-deployment.rst | 2 +-
shared/configuration/src/airflow_shared/configuration/parser.py | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/airflow-core/docs/administration-and-deployment/production-deployment.rst b/airflow-core/docs/administration-and-deployment/production-deployment.rst
index 78d0e0966bc..e4a6c1c814b 100644
--- a/airflow-core/docs/administration-and-deployment/production-deployment.rst
+++ b/airflow-core/docs/administration-and-deployment/production-deployment.rst
@@ -90,7 +90,7 @@ e.g. metadata DB, password, etc. You can accomplish this using the format :envva
.. code-block:: bash
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN=my_conn_id
- AIRFLOW__WEBSERVER__BASE_URL=http://host:port
+ AIRFLOW__API__BASE_URL=http://host:port
Some configurations such as the Airflow Backend connection URI can be derived from bash commands as well:
diff --git a/shared/configuration/src/airflow_shared/configuration/parser.py b/shared/configuration/src/airflow_shared/configuration/parser.py
index eaa1de73561..5c4781ae53f 100644
--- a/shared/configuration/src/airflow_shared/configuration/parser.py
+++ b/shared/configuration/src/airflow_shared/configuration/parser.py
@@ -129,6 +129,7 @@ class AirflowConfigParser(ConfigParser):
# DeprecationWarning will be issued and the old option will be used instead
deprecated_options: dict[tuple[str, str], tuple[str, str, str]] = {
("dag_processor", "refresh_interval"): ("scheduler", "dag_dir_list_interval", "3.0"),
+ ("api", "base_url"): ("webserver", "base_url", "3.0"),
("api", "host"): ("webserver", "web_server_host", "3.0"),
("api", "port"): ("webserver", "web_server_port", "3.0"),
("api", "workers"): ("webserver", "workers", "3.0"),