diff options
author | Valery Piashchynski <[email protected]> | 2020-10-27 15:16:55 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-10-27 15:16:55 +0300 |
commit | d199ef71b9644afbbba064c317cd0991be1c2443 (patch) | |
tree | f777eb90f10ca0e7dbc46227fc76c61f02111946 /pipe_factory.go | |
parent | 91cf918b30938129609323ded53e190385e019a6 (diff) |
Supervised pool
Diffstat (limited to 'pipe_factory.go')
-rwxr-xr-x | pipe_factory.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pipe_factory.go b/pipe_factory.go index a6c94614..807d7793 100755 --- a/pipe_factory.go +++ b/pipe_factory.go @@ -84,7 +84,7 @@ func (f *PipeFactory) SpawnWorkerWithContext(ctx context.Context, cmd *exec.Cmd) } // todo kill timeout - errK := w.Kill(ctx) + errK := w.Kill() if errK != nil { errs = append(errs, fmt.Errorf("error killing the worker with PID number %d, Created: %s", w.Pid(), w.Created()).Error()) } @@ -164,8 +164,7 @@ func (f *PipeFactory) SpawnWorker(cmd *exec.Cmd) (WorkerBase, error) { errs = append(errs, errF.Error()) } - // todo kill timeout ?? - errK := w.Kill(context.Background()) + errK := w.Kill() if errK != nil { errs = append(errs, fmt.Errorf("error killing the worker with PID number %d, Created: %s", w.Pid(), w.Created()).Error()) } |