fix: catch TimeoutExpired in parallel runner wait loop
CI / quality (pull_request) Successful in 1m6s
CI / molecule-tests (pull_request) Failing after 1m55s

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:
Emil Simeonov
2026-06-20 23:30:36 +02:00
co-authored by Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent d65b2190e2
commit 78c9b635e9
2 changed files with 38 additions and 1 deletions
+4 -1
View File
@@ -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