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

Database error handling #274

Open
sinus-x opened this issue Apr 15, 2021 · 0 comments
Open

Database error handling #274

sinus-x opened this issue Apr 15, 2021 · 0 comments
Labels
functionality New feature or request

Comments

@sinus-x
Copy link
Owner

sinus-x commented Apr 15, 2021

When psycopg2.errors.AdminShutdown/sqlalchemy.exc.OperationalError (or similar!) exception is thrown, take down the whole bot and try again (either with docker or systemd service).
When sqlalchemy.exc.InvalidRequestError is thrown, try to reset the session and roll back, so every new interaction doesn't cause messages to be thrown.

@sinus-x sinus-x added the functionality New feature or request label Apr 15, 2021
@sinus-x sinus-x changed the title Database handling Database error handling Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
functionality New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant