This commit is contained in:
苏尹岚
2020-10-29 11:37:25 +08:00
parent d583243da8
commit d515dcc656
2 changed files with 2 additions and 2 deletions

View File

@@ -506,7 +506,7 @@ func RefreshJobStatus(ctx *jxcontext.Context) (err error) {
return
}
for _, job := range jobs {
if time.Now().Sub(job.FinishedAt) >= 0 {
if time.Now().Sub(*job.FinishedAt) >= 0 {
job.Status = model.JobStatusOverdue
dao.UpdateEntity(db, job, "Status")
}