This is an automated email from the ASF dual-hosted git repository.

potiuk 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 f05976b998f [v3-1-test] Fix task SDK connection error handling to 
match airflow-core behavior (#56650) (#56653)
f05976b998f is described below

commit f05976b998ff3b6394c6e60e4685cda9aaf6b014
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Oct 15 16:46:20 2025 +0200

    [v3-1-test] Fix task SDK connection error handling to match airflow-core 
behavior (#56650) (#56653)
    
    (cherry picked from commit 7a834d6e86666e8f9b0ec53b1bc2c1236770d663)
    
    Co-authored-by: Amogh Desai <[email protected]>
---
 task-sdk/src/airflow/sdk/execution_time/context.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/task-sdk/src/airflow/sdk/execution_time/context.py 
b/task-sdk/src/airflow/sdk/execution_time/context.py
index ae916aefea0..58bd2521b02 100644
--- a/task-sdk/src/airflow/sdk/execution_time/context.py
+++ b/task-sdk/src/airflow/sdk/execution_time/context.py
@@ -160,7 +160,7 @@ def _get_connection(conn_id: str) -> Connection:
                 _mask_connection_secrets(conn)
                 return conn
         except Exception:
-            log.exception(
+            log.debug(
                 "Unable to retrieve connection from secrets backend (%s). "
                 "Checking subsequent secrets backend.",
                 type(secrets_backend).__name__,
@@ -206,7 +206,7 @@ async def _async_get_connection(conn_id: str) -> Connection:
                 return conn
         except Exception:
             # If one backend fails, try the next one
-            log.exception(
+            log.debug(
                 "Unable to retrieve connection from secrets backend (%s). "
                 "Checking subsequent secrets backend.",
                 type(secrets_backend).__name__,

Reply via email to