Skip to content

Conversation

@ramitkataria
Copy link
Contributor

After #51873, the base hook's get_connection exception for when connection is not found was changed and was no longer being caught by AwsGenericHook. This change fixes that by using a robust approach.

At some point, we should probably make the connection getter raise exceptions in a more consistent manner, maybe once we fully switch over to Task SDK.


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

…OUND` Task SDK exception

After apache#51873, the base hook's `get_connection` exception for when
connection is not found was changed and was no longer being caught by
`AwsGenericHook`. This change fixes that by using a robust approach.

At some point, we should probably make the connection getter raise
exceptions in a more consistent manner, maybe once we fully switch over
to Task SDK.
@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Jul 4, 2025
@ramitkataria
Copy link
Contributor Author

cc @ferruzzi

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ramitkataria it might take me some time to balance my priorities and get similar handling for v3 vs v2 exception wise as I do not want to hurry into it.

Could you leave a comment with # TODO: amoghrajesh or just a general todo for me?

Let me know if you want an approval on this in the meantime to unblock your system tests.

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM based on my last comment.
Will look at better handling next week

@ferruzzi ferruzzi merged commit 518926a into apache:main Jul 4, 2025
77 checks passed
@ferruzzi ferruzzi deleted the ramitkataria/aws-hook-conn-exception branch July 4, 2025 18:21
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.

3 participants