From a8e977da578eadab488e7b391ff2699c35020945 Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 5 May 2023 13:24:39 -0400 Subject: [PATCH] Kill Client mid-task, but only after a report, via openbench.exit --- Client/Client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/Client.py b/Client/Client.py index 4c1a58b..7028294 100644 --- a/Client/Client.py +++ b/Client/Client.py @@ -963,8 +963,8 @@ def run_and_parse_cutechess(arguments, workload, concurrency, command, cutechess stats = wld + [crashes, timelosses] status = server_report_results(arguments, workload, stats) - # Check for the task being aborted - if status.upper() == 'STOP': + # Check for the task being aborted, or Client being killed + if status.upper() == 'STOP' or os.path.isfile('openbench.exit'): kill_cutechess(cutechess) return