diff options
author | Frederick Muriuki Muriithi | 2025-03-25 14:38:24 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-03-25 14:38:24 -0500 |
commit | cb1d73d9224106b02fe15317d104a93fa9bdfb7c (patch) | |
tree | cc4a15d36f210eff7db9ea31579d09aacf7001aa /gn_libs | |
parent | 8bbbd120f6a1b7dd27e22a433b07326a41c32b04 (diff) | |
download | gn-libs-cb1d73d9224106b02fe15317d104a93fa9bdfb7c.tar.gz |
Add paths to output files as metadata items.
Diffstat (limited to 'gn_libs')
-rw-r--r-- | gn_libs/jobs/launcher.py | 2 |
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, |