Skip to content

Commit

Permalink
Remove offload try/except for thread_name_prefix keyword (#4308)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau authored Dec 3, 2020
1 parent 1c86be3 commit 3407aa3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions distributed/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1429,13 +1429,7 @@ def is_valid_xml(text):
return xml.etree.ElementTree.fromstring(text) is not None


try:
_offload_executor = ThreadPoolExecutor(
max_workers=1, thread_name_prefix="Dask-Offload"
)
except TypeError:
_offload_executor = ThreadPoolExecutor(max_workers=1)

_offload_executor = ThreadPoolExecutor(max_workers=1, thread_name_prefix="Dask-Offload")
weakref.finalize(_offload_executor, _offload_executor.shutdown)


Expand Down

0 comments on commit 3407aa3

Please sign in to comment.