mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 16:16:44 +00:00
update
This commit is contained in:
@@ -689,7 +689,7 @@ func (scheduler *SchedulerFair) Stop(jobName string) MsgStop {
|
|||||||
}
|
}
|
||||||
log.Info(index)
|
log.Info(index)
|
||||||
if index != -1 {
|
if index != -1 {
|
||||||
scheduler.queues[queue][index].Status = Stopped
|
(&scheduler.queues[queue][index]).Status = Stopped
|
||||||
scheduler.historyMu.Lock()
|
scheduler.historyMu.Lock()
|
||||||
scheduler.history = append(scheduler.history, &scheduler.queues[queue][index])
|
scheduler.history = append(scheduler.history, &scheduler.queues[queue][index])
|
||||||
scheduler.historyMu.Unlock()
|
scheduler.historyMu.Unlock()
|
||||||
|
|||||||
Reference in New Issue
Block a user