Big Model race condition

This commit is contained in:
whoisdomi
2026-09-06 14:22:07 -05:00
parent d52bf831ae
commit c72c4c2073
+6 -1
View File
@@ -20,11 +20,16 @@ def _chestnut_portli() -> Path | None:
def wait_usbgpu_link(timeout: float = 30.0) -> None:
start_time = time.monotonic()
portli = _chestnut_portli()
while portli is None and time.monotonic() - start_time < timeout:
time.sleep(0.5)
portli = _chestnut_portli()
if portli is None:
cloudlog.error("usbgpu device never enumerated")
return
start_time = time.monotonic()
while time.monotonic() - start_time < timeout:
start_errors = read_int(portli, 0)
time.sleep(STABLE_SECONDS)