mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-19 00:04:41 +08:00
Only fail when 10 consecutive socket errors occur (#1928)
This commit is contained in:

committed by
GitHub

parent
fd0d63ba5b
commit
0792ff02ff
@@ -112,7 +112,12 @@ def extract_rings(hosts, index):
|
||||
break
|
||||
if not ring:
|
||||
break
|
||||
rings.append(normalize(concretize(ring, used_ports)))
|
||||
try:
|
||||
rings.append(normalize(concretize(ring, used_ports)))
|
||||
except RuntimeError:
|
||||
if len(rings) > 0:
|
||||
return rings
|
||||
raise
|
||||
|
||||
return rings
|
||||
|
||||
|
Reference in New Issue
Block a user