-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PsqlDosBackend
: ensure sqla sessions are garbage-collected on `clos…
…e` (#5728) When calling `Manager.unload_profile`, the `close` method is called on the `StorageBackend`. For the `PsqlDosBackend` this means cleaning up all SqlAlchemy connections and sessions. This was implemented, however, SqlAlchemy would often still be holding on to at least one session in the `WeakrefValueDictionary` of `sqlalchemy.orm.sessions._sessions`. It turns out however that the reference was already cleared in fact, as calling the garbage collector explicitly cleans the session references.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters