Skip to content

Commit

Permalink
Use default_initializer in WorkerProcesses (#6534)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham authored Jun 10, 2022
1 parent 43ca938 commit b119eb9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions distributed/nanny.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,12 +809,10 @@ def _run(
try:
os.environ.update(env)
dask.config.set(config)
try:
from dask.multiprocessing import initialize_worker_process
except ImportError: # old Dask version
pass
else:
initialize_worker_process()

from dask.multiprocessing import default_initializer

default_initializer()

if silence_logs:
logger.setLevel(silence_logs)
Expand Down

0 comments on commit b119eb9

Please sign in to comment.