Skip to content

Commit fe87f2e

Browse files
test no join
1 parent e198117 commit fe87f2e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

optimum_benchmark/launchers/process/launcher.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ def launch(self, worker: Callable[..., BenchmarkReport], worker_args: List[Any])
5151
else:
5252
raise RuntimeError("Could not synchronize with isolated process")
5353

54-
isolated_process.join()
54+
while not parent_connection.poll():
55+
pass
5556

56-
if isolated_process.exitcode != 0:
57+
if isolated_process.exitcode is not None and isolated_process.exitcode != 0:
5758
raise RuntimeError(f"Isolated process exited with non-zero code {isolated_process.exitcode}")
5859

5960
if parent_connection.poll():

0 commit comments

Comments
 (0)