Skip to content

Commit 918e3fb

Browse files
authored
Handle UCXNotConnected error (#5449)
Handle UCXNotConnected error
1 parent 3afc670 commit 918e3fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

distributed/comm/ucx.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,10 @@ async def connect(self, address: str, deserialize=True, **connection_args) -> UC
383383
init_once()
384384
try:
385385
ep = await ucx_create_endpoint(ip, port)
386-
except (
387-
ucp.exceptions.UCXCloseError,
388-
ucp.exceptions.UCXCanceled,
389-
) + (getattr(ucp.exceptions, "UCXConnectionReset", ()),):
386+
except (ucp.exceptions.UCXCloseError, ucp.exceptions.UCXCanceled,) + (
387+
getattr(ucp.exceptions, "UCXConnectionReset", ()),
388+
getattr(ucp.exceptions, "UCXNotConnected", ()),
389+
):
390390
raise CommClosedError("Connection closed before handshake completed")
391391
return self.comm_class(
392392
ep,

0 commit comments

Comments
 (0)