about summary refs log tree commit diff
path: root/gn3/api
diff options
context:
space:
mode:
authorAlexander_Kabui2025-04-08 18:57:31 +0300
committerAlexander_Kabui2025-04-08 18:58:45 +0300
commit5adfd4eefb2e6455f6a0ec3fd3d81e862457f606 (patch)
tree48fc2a3912b83b379f019d4a5079c593e7b30d57 /gn3/api
parent27d9c9d6ef7f37066fc63af3d6585bf18aeec925 (diff)
downloadgenenetwork3-5adfd4eefb2e6455f6a0ec3fd3d81e862457f606.tar.gz
feat: Append GN3 computation completion marker to log file.
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/rqtl2.py3
1 files changed, 3 insertions, 0 deletions
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)