address
This commit is contained in:
@@ -546,8 +546,11 @@ func RefreshJobStatus(ctx *jxcontext.Context) (err error) {
|
|||||||
}
|
}
|
||||||
for _, job := range jobs {
|
for _, job := range jobs {
|
||||||
if time.Now().Sub(*job.FinishedAt) >= 0 {
|
if time.Now().Sub(*job.FinishedAt) >= 0 {
|
||||||
job.Status = model.JobStatusOverdue
|
job2 := &model.Job{}
|
||||||
dao.UpdateEntity(db, job, "Status")
|
job2.ID = job.ID
|
||||||
|
dao.GetEntity(db, job2)
|
||||||
|
job2.Status = model.JobStatusOverdue
|
||||||
|
dao.UpdateEntity(db, job2, "Status")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("RefreshJobStatus end...")
|
globals.SugarLogger.Debugf("RefreshJobStatus end...")
|
||||||
|
|||||||
Reference in New Issue
Block a user