Skip to content

Commit

Permalink
remove unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetSaroha committed Jan 20, 2025
1 parent f376b77 commit 3d8dbde
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/makim/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,25 +303,3 @@ def list_jobs(self) -> list[Dict[str, Any]]:
}
jobs.append(job_info)
return jobs

def get_job_status(self, name: str) -> Dict[str, Any]:
"""Get detailed status of a specific job."""
job = self.get_job(name)
if not job:
return {'error': 'Job not found'}

history = self.job_history.get(name, [])

return {
'name': name,
'next_run_time': job.next_run_time.isoformat()
if job.next_run_time
else None,
'schedule': str(job.trigger),
'history': history,
}

def shutdown(self) -> None:
"""Shutdown the scheduler."""
if self.scheduler:
self.scheduler.shutdown()

0 comments on commit 3d8dbde

Please sign in to comment.