1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00
This commit is contained in:
2020-06-30 16:16:30 +08:00
parent eda386fdf6
commit 51976911e1
3 changed files with 80 additions and 28 deletions

View File

@@ -51,6 +51,7 @@ func (jm *JobManager) start() {
/* sleep random Millisecond to avoid deadlock */
time.Sleep(time.Millisecond * time.Duration(500+rand.Intn(500)))
}
jm.job.StartedAt = time.Now().Unix()
if InstanceOfConfiguration().mock {
jm.scheduler.UpdateProgress(jm.job, Running)