X Tutup
Skip to content

Commit 99dfe8e

Browse files
committed
cancel_futures in shutdown() only available in python >=3.9.0
Signed-off-by: Matthew Kim <11141331+mattdeekay@users.noreply.github.com>
1 parent 6f868d0 commit 99dfe8e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ numpy = [
2626
sqlalchemy = "^1.3.24"
2727
openpyxl = "^3.0.10"
2828
alembic = "^1.0.11"
29+
concurrent = ">=3.9.0"
2930

3031
[tool.poetry.dev-dependencies]
3132
pytest = "^7.1.2"

src/databricks/sql/cloudfetch/download_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,6 @@ def _check_if_download_successful(self, handler: ResultSetDownloadHandler):
161161
return True
162162

163163
def _shutdown_manager(self):
164-
# Clear download handlers and shutdown the thread pool to cancel pending futures
164+
# Clear download handlers and shutdown the thread pool
165165
self.download_handlers = []
166166
self.thread_pool.shutdown(wait=False, cancel_futures=True)

0 commit comments

Comments
 (0)
X Tutup