1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-06 22:01:55 +00:00

update GA

This commit is contained in:
Newnius 2020-05-27 19:26:41 +08:00
parent 1a5172cdba
commit 770bfcbed0

View File

@ -110,6 +110,7 @@ func (jm *JobManager) start() {
}
wg.Wait()
jm.isRunning = true
log.Info(jm.jobStatus)
}
/* monitor job execution */
@ -289,7 +290,9 @@ func (jm *JobManager) status() MsgJobStatus {
tasksStatus[i] = res.Status
}
jm.checkStatus(tasksStatus)
if jm.isRunning {
jm.checkStatus(tasksStatus)
}
return MsgJobStatus{Status: tasksStatus}
}