Unverified Commit 7a8eb74f authored by Nick Ethier's avatar Nick Ethier
Browse files

taskrunner: return error on waitCh

parent 1a3a0bf9
Branches unavailable
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
......@@ -33,8 +33,9 @@ func (tr *TaskRunner) Restart(ctx context.Context, event *structs.TaskEvent, fai
// Drain the wait channel or wait for the request context to be canceled
waitCh, err := handle.WaitCh(ctx)
if err != nil {
tr.logger.Error("failed to kill task. Resources may have been leaked", "error", err)
return err
}
<-waitCh
return nil
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment