From 292ccc4f06299126892ffb0ed36a129ab6b15f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Patron?= Date: Fri, 20 Dec 2024 13:28:42 +0100 Subject: [PATCH] Don't loop on finished jobs --- tig-benchmarker/slave.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tig-benchmarker/slave.py b/tig-benchmarker/slave.py index 9d73bc8..d4161ff 100644 --- a/tig-benchmarker/slave.py +++ b/tig-benchmarker/slave.py @@ -100,11 +100,14 @@ def send_results(session, master_ip, master_port, tig_worker_path, download_wasm logger.debug("No pending batches") time.sleep(1) return + + if FINISHED_BATCH_IDS[batch_id] is not None: + return; output_folder = f"{output_path}/{batch_id}" with open(f"{output_folder}/batch.json") as f: batch = json.load(f) - + if ( not os.path.exists(f"{output_folder}/result.json") or not os.path.exists(f"{output_folder}/data.zlib")