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

Add SQLAlchemy clean-up workaround #82

Closed
wants to merge 2 commits into from

Conversation

JamesHutchison
Copy link
Owner

@JamesHutchison JamesHutchison commented Jan 5, 2024

This adds a clean-up function for sqlalchemy that seems prudent. That said, I cannot vouch for its value, as I added this while debugging some issues with sessions being reused in async tests. I was still seeing sqlalchemy complaining about deleting sessions that weren't closed, so its not clear to me, yet, what is happening there.

I don't think there is any harm in having this.

@JamesHutchison
Copy link
Owner Author

A quick test reveals that this may be a performance penalty, so maybe there's a better way to go about this.

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