aboutsummaryrefslogtreecommitdiff
path: root/gn_libs
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-03-25 14:38:24 -0500
committerFrederick Muriuki Muriithi2025-03-25 14:38:24 -0500
commitcb1d73d9224106b02fe15317d104a93fa9bdfb7c (patch)
treecc4a15d36f210eff7db9ea31579d09aacf7001aa /gn_libs
parent8bbbd120f6a1b7dd27e22a433b07326a41c32b04 (diff)
downloadgn-libs-cb1d73d9224106b02fe15317d104a93fa9bdfb7c.tar.gz
Add paths to output files as metadata items.
Diffstat (limited to 'gn_libs')
-rw-r--r--gn_libs/jobs/launcher.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn_libs/jobs/launcher.py b/gn_libs/jobs/launcher.py
index 8eab55b..3e9e3ee 100644
--- a/gn_libs/jobs/launcher.py
+++ b/gn_libs/jobs/launcher.py
@@ -15,6 +15,8 @@ def run_job(conn, job, outputs_directory: Path):
job_id = job["job_id"]
stdout_file = outputs_directory.joinpath(f"{job_id}.stdout")
stderr_file = outputs_directory.joinpath(f"{job_id}.stderr")
+ jobs.update_metadata(conn, job_id, "stdout-file", str(stdout_file))
+ jobs.update_metadata(conn, job_id, "stderr-file", str(stderr_file))
try:
with (# TODO: Add the output streams' files to job metadata
stdout_file.open(mode="w") as outfile,