-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close connection of database after initialization correctly (#179)
The session created during initialization of the container was never properly closed. This unclosed session was until py3.12 garbage collected since it was unreferenced. With py3.13 the sessions however are not anymore garbage collected and thus remain open. Resulting in an open file descriptors of the `pack.idx` for each initialization of the container. This commit fixes it by keeping track of the session that initializes the container `_container_session`. We adapt the name `_session` to `_operation_session` for a clearer distinction between the two session types.
- Loading branch information
1 parent
17e9243
commit 6686ad0
Showing
6 changed files
with
93 additions
and
80 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
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
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
Oops, something went wrong.