diff --git a/src/scheduler_fair.go b/src/scheduler_fair.go index fcf7786..0edfe63 100644 --- a/src/scheduler_fair.go +++ b/src/scheduler_fair.go @@ -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()