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

Rollback db actions when connection invalidated #175

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

samhotep
Copy link
Member

@samhotep samhotep commented Aug 19, 2024

Done

Added an error handler for sqlalchemy.exc.PendingRollbackError which occurs when a connection object is invalidated

QA

Issue / Card

Fixes intermittent issue where a timed out transaction (normally on the security/notices.json endpoint) invalidates the current connection and requires a rollback before reconnecting.

image

@samhotep samhotep merged commit ca52a41 into main Aug 19, 2024
5 checks passed
@samhotep samhotep deleted the rollback-on-session-error branch August 19, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants