From f4ef69e376648aa2c0a2ef03765641cc5ebaa455 Mon Sep 17 00:00:00 2001
From: jws52 <jws52@cam.ac.uk>
Date: Tue, 24 Jan 2023 09:35:34 +0000
Subject: [PATCH] feat: Job path is passed to advisory_builder

---
 coordinator/ProcessorAdvisory.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/coordinator/ProcessorAdvisory.py b/coordinator/ProcessorAdvisory.py
index c8606a3..269087b 100644
--- a/coordinator/ProcessorAdvisory.py
+++ b/coordinator/ProcessorAdvisory.py
@@ -22,6 +22,8 @@ def process_in_job_advisory(jobPath,status,config,component):
 
     config_advisory = config[component].copy()
 
+    config_advisory['jobPath'] = jobPath
+
     # provide top-level arguments to advisory config
     for k,v in config.items():
         if k not in short_name.keys():
@@ -31,6 +33,8 @@ def process_in_job_advisory(jobPath,status,config,component):
 
     layout = 'tight'
 
+    logging.info(f"Running for scenario {config_advisory}, {dateString}, {layout}")
+
     report_names = DataGatherer.run_each_subregion(config_advisory, dateString, layout)
 
     # pass the report filenames to upload to the remote server
-- 
GitLab