From 2dadf74f01dfd381bd08e6b7fc20fe1f1d0b6b2b Mon Sep 17 00:00:00 2001 From: glrs <5999366+glrs@users.noreply.github.com> Date: Mon, 7 Oct 2024 14:22:16 +0200 Subject: [PATCH] Add sample parameter to monitor_job method --- lib/base/abstract_project.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/base/abstract_project.py b/lib/base/abstract_project.py index 165a7bf..3fc60be 100644 --- a/lib/base/abstract_project.py +++ b/lib/base/abstract_project.py @@ -73,16 +73,17 @@ def submit_job(self, script: str) -> Any: """ return self.sjob_manager.submit_job(script) - def monitor_job(self, job_id: str) -> Any: + def monitor_job(self, job_id: str, sample: Any) -> Any: """Monitor the status of a submitted Slurm job using the SlurmJobManager. Args: job_id (str): The identifier of the submitted job to be monitored. + sample (Any): The sample object associated with the job. Returns: Any: The result of the job monitoring. """ - return self.sjob_manager.monitor_job(job_id) + return self.sjob_manager.monitor_job(job_id, sample) @abstractmethod def post_process(self, result: Any) -> None: