Merge pull request #4053 from hashicorp/b-drain-sys-jobs-2

drain: fix draining of system jobs
This commit is contained in:
Michael Schurter
2018-03-27 16:26:45 -07:00
committed by GitHub
6 changed files with 367 additions and 22 deletions

View File

@@ -410,7 +410,7 @@ func monitorDrain(output func(string), nodeClient *api.Nodes, nodeID string, ind
// Loop on alloc messages for a bit longer as we may have gotten the
// "node done" first (since the watchers run concurrently the events
// may be received out of order)
deadline := 250 * time.Millisecond
deadline := 500 * time.Millisecond
timer := time.NewTimer(deadline)
for {
select {