This is an automated email from the ASF dual-hosted git repository.
guanmingchiu pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-1-test by this push:
new 991f508ac7a [v3-1-test] Fix WASB remote logging base path handling
(#58946) (#61013) (#62456)
991f508ac7a is described below
commit 991f508ac7ace83657bbb92c1bae19d237db191f
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Feb 26 00:17:58 2026 +0800
[v3-1-test] Fix WASB remote logging base path handling (#58946) (#61013)
(#62456)
* Fix WASB remote logging base path handling
* Fix WASB remote logging base path handling by simplifying prefix removal
* Clarify handling of WASB remote logging base path format in comments
* fix CI static checks error
(cherry picked from commit 726d4b5c5b59e1be82708f56102b4ced52078c40)
Co-authored-by: Aaron Chen <[email protected]>
---
airflow-core/src/airflow/config_templates/airflow_local_settings.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/airflow-core/src/airflow/config_templates/airflow_local_settings.py
b/airflow-core/src/airflow/config_templates/airflow_local_settings.py
index 6270fba7ba3..bb7efe9b193 100644
--- a/airflow-core/src/airflow/config_templates/airflow_local_settings.py
+++ b/airflow-core/src/airflow/config_templates/airflow_local_settings.py
@@ -220,11 +220,14 @@ if REMOTE_LOGGING:
"azure_remote_logging", "remote_wasb_log_container",
fallback="airflow-logs"
)
+ # Handle both URI format (wasb://logs) and plain path (e.g., wasb-logs)
+ wasb_remote_base = remote_base_log_folder.removeprefix("wasb://")
+
REMOTE_TASK_LOG = WasbRemoteLogIO(
**(
{
"base_log_folder": BASE_LOG_FOLDER,
- "remote_base": remote_base_log_folder,
+ "remote_base": wasb_remote_base,
"delete_local_copy": delete_local_copy,
"wasb_container": wasb_log_container,
}