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

Adding scoped sqlalchemy sessions #105

Merged
merged 2 commits into from
Aug 19, 2021
Merged

Conversation

costrouc
Copy link
Member

@costrouc costrouc commented Aug 19, 2021

Such a small PR but was the source of a lot of flask webpage / database state issues. The problem was that the session object in sqlalchemy was being reused between requests (not transactions) and this was causing the web api/ui to not reflect the true state of the database once the worker deleted/updated some environments.

@costrouc costrouc merged commit f81fdc0 into main Aug 19, 2021
@costrouc costrouc deleted the sqlalchemy-session-scoping branch August 19, 2021 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant