Skip to content

Commit

Permalink
Minimal change to work around #7726 / support of UCX
Browse files Browse the repository at this point in the history
  • Loading branch information
quasiben committed Apr 5, 2023
1 parent 9eb8bb3 commit d62693d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions distributed/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@
# isort: on

import atexit
import weakref

# This finalizer registers an atexit handler that has to happen before
# distributed registers its handlers, otherwise we observe hangs on
# cluster shutdown when using the UCX comms backend. See
# https://github.com/dask/distributed/issues/7726 for more discussion

weakref.finalize(lambda: None, lambda: None)
import dask
from dask.config import config # type: ignore

Expand Down

0 comments on commit d62693d

Please sign in to comment.