Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set correct session state when encountering EntityNotFound #506

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

Charlie43
Copy link
Contributor

@Charlie43 Charlie43 commented Jan 31, 2025

resolves #505

Description

Expand the error handling in the state() property to correctly set _state to None when a session is not found - this allows a new session to be created instead of always going through the _recreate_session flow.

I don't see any existing tests for connection handling at all but let me know if one should be added.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change to the "dbt-glue next" section.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@Charlie43 Charlie43 marked this pull request as ready for review February 4, 2025 17:45
@moomindani moomindani self-assigned this Feb 7, 2025
@moomindani moomindani added the enable-functional-tests This label enable functional tests label Feb 7, 2025
@moomindani moomindani merged commit b732d03 into aws-samples:main Feb 7, 2025
@moomindani
Copy link
Collaborator

Thank you for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor enable-functional-tests This label enable functional tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Session State defaults to STOPPED when it encounters any error
2 participants