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
Avoid dangling task-local connections after Database.disconnect() #211
Conversation
This change forces initialization of a new Connection if we connect() again.
Heya! Thanks for the PR here. I think I'd need a need clearer background here... |
Sure, here is what happens. Let's suppose we've got
The current code cleans up the global connection which we manipulate in case |
@tomchristie Ping |
@tomchristie ping |
@tomchristie ping |
@tomchristie friendly ping |
I've been seeing "Connection is not acquired" assertion errors in my long running processes. Could this be a cause of that? |
@taybin I'm not sure if this can be related to your issue.If you have more info about your issue, please open a new one. |
@aminalaee On further research, I believe #283 is the cause of what I've been seeing. |
@taybin That one looks good too. I'll check it again. |
Avoid dangling task-local connections after Database.disconnect() (#211) Co-authored-by: Amin Alaee <mohammadamin.alaee@gmail.com> Reset counter for failed connections (#385) Co-authored-by: Sergey Morozov <sergey@morozov.top> Version 0.5.2 (#386) update requirements change scripts update pytest config update pytest Update requirements update workflow try cache in workflow disable coverage for py3.6 use cache in env fix workflow cache keys update coverage workflow test test again test use absoulte path
This change forces initialization of a new Connection if we connect() again.