mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 14:21:55 +00:00
update
This commit is contained in:
parent
af3456ffd7
commit
9d04c2e300
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user