Skip to content

Conversation

@ferruzzi
Copy link
Contributor

@ferruzzi ferruzzi commented May 12, 2025

The Task API raises an AirflowRuntimeError which we need to catch now as well. In an effort to not accidentally swallow any other RuntimeErrors that may pop up, I added a message match on it and re-raise if it doesn't have the expected "connection not found" message.

Related slack discussion: https://apache-airflow.slack.com/archives/C06K9Q5G2UA/p1746835026272909?thread_ts=1746819752.521919&cid=C06K9Q5G2UA


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@ferruzzi ferruzzi requested review from amoghrajesh and kaxil May 12, 2025 23:01
@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels May 12, 2025
@ferruzzi ferruzzi requested a review from vincbeck May 12, 2025 23:02
@ferruzzi ferruzzi force-pushed the ferruzzi/fix-connection-failures branch from 4ad16f4 to aed58c4 Compare May 12, 2025 23:14
@ferruzzi ferruzzi force-pushed the ferruzzi/fix-connection-failures branch from aed58c4 to 3779cee Compare May 13, 2025 17:06
@vincbeck vincbeck merged commit 40e997a into apache:main May 22, 2025
68 checks passed
@vincbeck vincbeck deleted the ferruzzi/fix-connection-failures branch May 22, 2025 14:19
dadonnelly316 pushed a commit to dadonnelly316/airflow that referenced this pull request May 26, 2025
…apache#50515)

* Fix aws_conn_id defaulting after dag,test was updated to use TaskSDK.

* put api import behind a version check

* put exception type check behind a version check

* mypy gets confused on the type hinting with the ternary assignment
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
…apache#50515)

* Fix aws_conn_id defaulting after dag,test was updated to use TaskSDK.

* put api import behind a version check

* put exception type check behind a version check

* mypy gets confused on the type hinting with the ternary assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants