mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-12-17 00:46:19 +00:00
Added function to remove stale jobs logs
This commit is contained in:
@@ -200,7 +200,8 @@ class PeerJobs:
|
||||
"ExpireDate": datetime.now()
|
||||
}
|
||||
).where(self.peerJobTable.columns.JobID == job.get('JobID'))
|
||||
)
|
||||
)
|
||||
self.JobLogger.deleteLogs(JobID=job.get('JobID'))
|
||||
self.JobLogger.log(job.get('JobID'), Message=f"Job is removed due to being stale.")
|
||||
|
||||
def __runJob_Compare(self, x: float | datetime, y: float | datetime, operator: str):
|
||||
|
||||
Reference in New Issue
Block a user