deepujain opened a new pull request, #64282:
URL: https://github.com/apache/airflow/pull/64282

   **Title:** Handle triggerer cross-loop connection RuntimeError in Task SDK 
(#64213)
   
   ## Summary
   The Task SDK connection backend now treats the triggerer worker-thread 
cross-loop `RuntimeError` the same way it already treats the existing 
AsyncToSync event-loop error, so deferrable AWS hooks can keep resolving 
connections instead of silently falling back to empty credentials.
   
   ## Changes
   - **`task-sdk/src/airflow/sdk/execution_time/secrets/execution_api.py`** -- 
broadened the greenback fallback gate to recognize the cross-loop `Future 
attached to a different loop` error in addition to the existing AsyncToSync 
event-loop message.
   - **`task-sdk/tests/task_sdk/execution_time/test_secrets.py`** -- extended 
the regression test to cover both runtime-error variants and verify the 
greenback fallback still returns the expected connection.
   
   ## Test plan
   - [x] `uv run --project task-sdk ruff check 
task-sdk/src/airflow/sdk/execution_time/secrets/execution_api.py 
task-sdk/tests/task_sdk/execution_time/test_secrets.py`
   - [x] `uv run --project task-sdk ruff format --check 
task-sdk/src/airflow/sdk/execution_time/secrets/execution_api.py 
task-sdk/tests/task_sdk/execution_time/test_secrets.py`
   - [x] `uv run --project task-sdk pytest 
task-sdk/tests/task_sdk/execution_time/test_secrets.py -xvs`
   
   Fixes #64213
   


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