mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 16:16:44 +00:00
update
This commit is contained in:
@@ -108,7 +108,7 @@ func (scheduler *SchedulerFCFS) Stop(jobName string) MsgStop {
|
|||||||
if !ok {
|
if !ok {
|
||||||
return MsgStop{Code: 1, Error: "Job not exist!"}
|
return MsgStop{Code: 1, Error: "Job not exist!"}
|
||||||
}
|
}
|
||||||
return jm.stop()
|
return jm.stop(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (scheduler *SchedulerFCFS) QueryLogs(jobName string, taskName string) MsgLog {
|
func (scheduler *SchedulerFCFS) QueryLogs(jobName string, taskName string) MsgLog {
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ func (scheduler *SchedulerPriority) Stop(jobName string) MsgStop {
|
|||||||
if !ok {
|
if !ok {
|
||||||
return MsgStop{Code: 1, Error: "Job not exist!"}
|
return MsgStop{Code: 1, Error: "Job not exist!"}
|
||||||
}
|
}
|
||||||
return jm.stop()
|
return jm.stop(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (scheduler *SchedulerPriority) QueryLogs(jobName string, taskName string) MsgLog {
|
func (scheduler *SchedulerPriority) QueryLogs(jobName string, taskName string) MsgLog {
|
||||||
|
|||||||
Reference in New Issue
Block a user