Skip to content

Commit 879d63c

Browse files
committed
revert changes in abstrat classed to fix Studio
1 parent fc1654e commit 879d63c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/datachain/data_storage/metastore.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ def __enter__(self) -> "AbstractMetastore":
9797
return self
9898

9999
def __exit__(self, exc_type, exc_value, traceback) -> None:
100-
"""Ensure cloned instances release DB resources when leaving contexts."""
101-
self.close_on_exit()
100+
"""Default behavior is to do nothing, as connections may be shared."""
102101

103102
@abstractmethod
104103
def clone(

src/datachain/data_storage/warehouse.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ def __enter__(self) -> "AbstractWarehouse":
7171
return self
7272

7373
def __exit__(self, exc_type, exc_value, traceback) -> None:
74-
# Release DB handles for clones used via context manager.
75-
self.close_on_exit()
74+
"""Default behavior is to do nothing, as connections may be shared."""
7675

7776
def cleanup_for_tests(self):
7877
"""Cleanup for tests."""

0 commit comments

Comments
 (0)