1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-07 06:11:56 +00:00
This commit is contained in:
Newnius 2020-06-18 20:44:52 +08:00
parent af3456ffd7
commit 9d04c2e300

View File

@ -689,7 +689,7 @@ func (scheduler *SchedulerFair) Stop(jobName string) MsgStop {
}
log.Info(index)
if index != -1 {
scheduler.queues[queue][index].Status = Stopped
(&scheduler.queues[queue][index]).Status = Stopped
scheduler.historyMu.Lock()
scheduler.history = append(scheduler.history, &scheduler.queues[queue][index])
scheduler.historyMu.Unlock()