drain: give cli more time before exiting

May want to bump this a bit more as the drain often completes amidst a
flurry of alloc updates.
This commit is contained in:
Michael Schurter
2018-03-27 14:11:33 -07:00
parent 9d39af1ca0
commit c032d4da65

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 {