Skip to content

Commit 5323672

Browse files
authored
[misc] cleanup one level of error stack when nixl fails to initialize (vllm-project#35517)
Signed-off-by: youkaichao <youkaichao@gmail.com>
1 parent a201ad7 commit 5323672

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vllm/distributed/kv_transfer/kv_connector/v1/nixl_connector.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2506,6 +2506,9 @@ def __del__(self):
25062506

25072507
def shutdown(self):
25082508
"""Shutdown the connector worker."""
2509+
if not hasattr(self, "_handshake_initiation_executor"):
2510+
# error happens during init, no need to shutdown
2511+
return
25092512
self._handshake_initiation_executor.shutdown(wait=False)
25102513
for handles in self._recving_transfers.values():
25112514
for handle in handles:

0 commit comments

Comments
 (0)