diff --git a/src/scheduler_FCFS.go b/src/scheduler_FCFS.go index 9d02b96..c8fd99c 100644 --- a/src/scheduler_FCFS.go +++ b/src/scheduler_FCFS.go @@ -108,7 +108,7 @@ func (scheduler *SchedulerFCFS) Stop(jobName string) MsgStop { if !ok { return MsgStop{Code: 1, Error: "Job not exist!"} } - return jm.stop() + return jm.stop(true) } func (scheduler *SchedulerFCFS) QueryLogs(jobName string, taskName string) MsgLog { diff --git a/src/scheduler_priority.go b/src/scheduler_priority.go index 724cfa9..f4b28f4 100644 --- a/src/scheduler_priority.go +++ b/src/scheduler_priority.go @@ -132,7 +132,7 @@ func (scheduler *SchedulerPriority) Stop(jobName string) MsgStop { if !ok { return MsgStop{Code: 1, Error: "Job not exist!"} } - return jm.stop() + return jm.stop(true) } func (scheduler *SchedulerPriority) QueryLogs(jobName string, taskName string) MsgLog {