Skip to content

Commit

Permalink
core: properly dispose of sqlalchemy engine
Browse files Browse the repository at this point in the history
otherwise for some reason this was causing shm/wal turnds (and test_cache_paths to fail)

the commit that 'broke' it is sqlalchemy/sqlalchemy@22ed657 -- not sure what's up
  • Loading branch information
karlicoss committed Jan 28, 2023
1 parent 3d392bf commit 58b1003
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cachew/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ def __enter__(self) -> 'DbHelper':

def __exit__(self, *args) -> None:
self.connection.close()
self.engine.dispose()


HashFunction = Callable[..., SourceHash]
Expand Down

0 comments on commit 58b1003

Please sign in to comment.