diff --git a/maap_utils/JobLedger.py b/maap_utils/JobLedger.py index e6c82e5f8c75c170f94e8bd4a37643a456bcd7ba..a3a14d1eb4ba9745e38e8e6d52e279248074cbfc 100644 --- a/maap_utils/JobLedger.py +++ b/maap_utils/JobLedger.py @@ -35,6 +35,10 @@ class JobLedger: self.last_checked[job_id] = datetime.now() self.attempts[job_id] += 1 + def get_status(self, job_id: str) -> str: + """Get the status of a specific job""" + return self.status.get(job_id, "Unknown") + def get_pending_jobs(self) -> List[Job]: """Get jobs not in final states"""