mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
refactor: updated task related grpc proto
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user