refactor: updated task related grpc proto

This commit is contained in:
Marvin Zhang
2024-10-29 17:59:39 +08:00
parent 3aa32a14ad
commit 789f71fd80
9 changed files with 61 additions and 64 deletions

View File

@@ -166,11 +166,11 @@ func (r *RunnerV2) Run() (err error) {
return err
}
func (r *RunnerV2) Cancel() (err error) {
func (r *RunnerV2) Cancel(force bool) (err error) {
// kill process
opts := &sys_exec.KillProcessOptions{
Timeout: r.svc.GetCancelTimeout(),
Force: true,
Force: force,
}
if err := sys_exec.KillProcess(r.cmd, opts); err != nil {
return err