1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-12 23:36:44 +00:00

update preempt

This commit is contained in:
2020-06-05 15:33:23 +08:00
parent 0d67d4558e
commit 6f0a9617e4
5 changed files with 85 additions and 0 deletions

View File

@@ -22,6 +22,8 @@ type JobManager struct {
killFlag bool
network string
stats [][]TaskStatus
}
func (jm *JobManager) start() {
@@ -320,6 +322,8 @@ func (jm *JobManager) status() MsgJobStatus {
go func() {
jm.checkStatus(tasksStatus)
}()
jm.stats = append(jm.stats, tasksStatus)
}
return MsgJobStatus{Status: tasksStatus}
}