Skip to content

Commit e94978f

Browse files
committed
garbage collector
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent 5363625 commit e94978f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/databricks/sql/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,11 @@ def __del__(self):
377377
"Closing unclosed connection for session "
378378
"{}".format(self.get_session_id_hex())
379379
)
380+
print(
381+
"LMAO GC closing connection IN MAIN THREAD (INTERRUPTS EVERYTHING): ",
382+
self.get_session_id_hex(),
383+
flush=True,
384+
)
380385
try:
381386
self._close(close_cursors=False)
382387
except OperationalError as e:

0 commit comments

Comments
 (0)