task bug fix

This commit is contained in:
liuzhihang1
2025-02-13 11:16:02 +08:00
parent b59b251102
commit 1852f7ab4c
2 changed files with 21 additions and 5 deletions

View File

@@ -141,6 +141,7 @@ var OperationHandle = map[constants.TaskOperation]operationFunc{
return false
}
log.Logger.Debugw("异步停止任务")
proc.State.manualStopFlag = true
go proc.Kill()
return true
},
@@ -151,6 +152,7 @@ var OperationHandle = map[constants.TaskOperation]operationFunc{
return false
}
log.Logger.Debugw("停止任务并等待结束")
proc.State.manualStopFlag = true
return proc.Kill() == nil
},
}