diff --git a/distributed/nanny.py b/distributed/nanny.py index dfb00bb308..0411e16cfb 100644 --- a/distributed/nanny.py +++ b/distributed/nanny.py @@ -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)