From cb1d73d9224106b02fe15317d104a93fa9bdfb7c Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 25 Mar 2025 14:38:24 -0500 Subject: Add paths to output files as metadata items. --- gn_libs/jobs/launcher.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gn_libs') 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, -- cgit v1.2.3