Skip to content

Commit

Permalink
just use time.sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbailey committed Apr 10, 2020
1 parent edc2511 commit 3c322b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/allocrunner/taskrunner/task_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ func (tr *TaskRunner) handleKill() *drivers.ExitResult {
// before waiting to kill task
if delay := tr.Task().ShutdownDelay; delay != 0 {
tr.logger.Debug("waiting before killing task", "shutdown_delay", delay)
<-time.After(delay)
time.Sleep(delay)
}

// Tell the restart tracker that the task has been killed so it doesn't
Expand Down

0 comments on commit 3c322b8

Please sign in to comment.