edit process kill

This commit is contained in:
akrike
2025-08-29 17:34:16 +08:00
parent da54e71c27
commit f723c12d42
3 changed files with 5 additions and 10 deletions

View File

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