Skip to content
Snippets Groups Projects
Commit 00664fa8 authored by Ian's avatar Ian
Browse files

fix: added method to get a single job's status in JobLedger

parent 12951c8f
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,10 @@ class JobLedger: ...@@ -35,6 +35,10 @@ class JobLedger:
self.last_checked[job_id] = datetime.now() self.last_checked[job_id] = datetime.now()
self.attempts[job_id] += 1 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]: def get_pending_jobs(self) -> List[Job]:
"""Get jobs not in final states""" """Get jobs not in final states"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment