diff options
author | Valery Piashchynski <[email protected]> | 2020-11-26 12:44:12 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-26 12:44:12 +0300 |
commit | 574f351aaecdee1176b9700bb6d7eb61fe170906 (patch) | |
tree | 6271704950d2c89a43de3edafb677a003d50a406 /worker.go | |
parent | e5313529e4293b7ad985cce72cec54b08462259d (diff) |
Remove context from worker wait function. Explicitly enable ubuntu 20.04
in the CI
Diffstat (limited to 'worker.go')
-rwxr-xr-x | worker.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -80,7 +80,7 @@ type WorkerBase interface { // complete and will return process error (if any), if stderr is presented it's value // will be wrapped as WorkerError. Method will return error code if php process fails // to find or Start the script. - Wait(ctx context.Context) error + Wait() error // Stop sends soft termination command to the WorkerProcess and waits for process completion. Stop(ctx context.Context) error @@ -219,7 +219,7 @@ func (w *WorkerProcess) Start() error { // complete and will return process error (if any), if stderr is presented it's value // will be wrapped as WorkerError. Method will return error code if php process fails // to find or Start the script. -func (w *WorkerProcess) Wait(ctx context.Context) error { +func (w *WorkerProcess) Wait() error { const op = errors.Op("worker process wait") err := multierr.Combine(w.cmd.Wait()) // at this point according to the documentation (see cmd.Wait comment) |