Skip to content

Commit

Permalink
Add cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvo committed Sep 19, 2024
1 parent 575e2e9 commit bcedc11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ingestify/infra/store/dataset/sqlalchemy/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def __setstate__(self, state):
self.url = state["url"]
self._init_engine()

def __del__(self):
self.session.close()
self.engine.dispose()

def _filter_query(
self,
query,
Expand Down

0 comments on commit bcedc11

Please sign in to comment.