Skip to content

Commit 4b0f483

Browse files
acquite download_condition lock
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 3c1ff9b commit 4b0f483

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/databricks/sql/cloudfetch/download_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,5 @@ def _shutdown_manager(self):
131131
self._pending_links = []
132132
self._download_tasks = []
133133
self._thread_pool.shutdown(wait=False)
134-
self._download_condition.notify_all()
134+
with self._download_condition:
135+
self._download_condition.notify_all()

0 commit comments

Comments
 (0)