Skip to content

Commit

Permalink
Add sample parameter to monitor_job method
Browse files Browse the repository at this point in the history
  • Loading branch information
glrs committed Oct 7, 2024
1 parent 1b5cedf commit 2dadf74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/base/abstract_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2dadf74

Please sign in to comment.