fix: catch TimeoutExpired in parallel runner wait loop
The initial wait loop used proc.wait(timeout=0.5) which could raise subprocess.TimeoutExpired and crash the runner. Added a try/except and increased timeout to 5s so the runner polls correctly without crashing. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent
d65b2190e2
commit
78c9b635e9
@@ -106,7 +106,10 @@ def cli(pairs: tuple[str, ...]) -> None:
|
||||
if not finished_indices:
|
||||
# No process finished yet, wait a bit
|
||||
for proc in processes:
|
||||
proc.wait(timeout=0.5)
|
||||
try:
|
||||
proc.wait(timeout=5)
|
||||
except subprocess.TimeoutExpired:
|
||||
pass
|
||||
continue
|
||||
|
||||
# Remove finished processes from the list
|
||||
|
||||
Reference in New Issue
Block a user