Skip to content

Commit f11e2f8

Browse files
committed
Remove QuerySessionPool destructors
1 parent 0104976 commit f11e2f8

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

ydb/aio/query/pool.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,6 @@ async def __aenter__(self):
213213
async def __aexit__(self, exc_type, exc_val, exc_tb):
214214
await self.stop()
215215

216-
def __del__(self):
217-
if self._should_stop.is_set() or self._loop.is_closed():
218-
return
219-
220-
self._loop.call_soon(self.stop)
221-
222216

223217
class SimpleQuerySessionCheckoutAsync:
224218
def __init__(self, pool: QuerySessionPool):

ydb/query/pool.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,6 @@ def __enter__(self):
224224
def __exit__(self, exc_type, exc_val, exc_tb):
225225
self.stop()
226226

227-
def __del__(self):
228-
self.stop()
229-
230227

231228
class SimpleQuerySessionCheckout:
232229
def __init__(self, pool: QuerySessionPool, timeout: Optional[float]):

0 commit comments

Comments
 (0)