Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
7a8eb74f
Unverified
Commit
7a8eb74f
authored
6 years ago
by
Nick Ethier
Browse files
Options
Download
Email Patches
Plain Diff
taskrunner: return error on waitCh
parent
1a3a0bf9
Branches unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/allocrunner/taskrunner/lifecycle.go
+2
-1
client/allocrunner/taskrunner/lifecycle.go
with
2 additions
and
1 deletion
+2
-1
client/allocrunner/taskrunner/lifecycle.go
+
2
-
1
View file @
7a8eb74f
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help