From 5adfd4eefb2e6455f6a0ec3fd3d81e862457f606 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 8 Apr 2025 18:57:31 +0300 Subject: feat: Append GN3 computation completion marker to log file. --- gn3/api/rqtl2.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gn3/api/rqtl2.py') diff --git a/gn3/api/rqtl2.py b/gn3/api/rqtl2.py index 5219573..dc06d1d 100644 --- a/gn3/api/rqtl2.py +++ b/gn3/api/rqtl2.py @@ -49,4 +49,7 @@ def compute(log_file): return jsonify(process_output), 400 results = process_qtl2_results(output_file) shutil.rmtree(workspace_dir, ignore_errors=True, onerror=None) + # append this at end of computation to the log file to mark end of gn3 computation + with open(log_file, "ab+") as file_handler: + file_handler.write("Done with GN3 Computation".encode("utf-8")) return jsonify(results) -- cgit 1.4.1