diff options
| author | Alexander_Kabui | 2025-04-08 18:57:31 +0300 |
|---|---|---|
| committer | Alexander_Kabui | 2025-04-08 18:58:45 +0300 |
| commit | 5adfd4eefb2e6455f6a0ec3fd3d81e862457f606 (patch) | |
| tree | 48fc2a3912b83b379f019d4a5079c593e7b30d57 /gn3/api | |
| parent | 27d9c9d6ef7f37066fc63af3d6585bf18aeec925 (diff) | |
| download | genenetwork3-5adfd4eefb2e6455f6a0ec3fd3d81e862457f606.tar.gz | |
feat: Append GN3 computation completion marker to log file.
Diffstat (limited to 'gn3/api')
| -rw-r--r-- | gn3/api/rqtl2.py | 3 |
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) |
