summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-26 12:44:12 +0300
committerValery Piashchynski <[email protected]>2020-11-26 12:44:12 +0300
commit574f351aaecdee1176b9700bb6d7eb61fe170906 (patch)
tree6271704950d2c89a43de3edafb677a003d50a406 /worker.go
parente5313529e4293b7ad985cce72cec54b08462259d (diff)
Remove context from worker wait function. Explicitly enable ubuntu 20.04
in the CI
Diffstat (limited to 'worker.go')
-rwxr-xr-xworker.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker.go b/worker.go
index 0289a7fe..402e9b90 100755
--- a/worker.go
+++ b/worker.go
@@ -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)