From c032d4da658df93f5d02d98b0d7d63a723d9aac4 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Tue, 27 Mar 2018 14:11:33 -0700 Subject: [PATCH] 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. --- command/node_drain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/node_drain.go b/command/node_drain.go index 9f170c76e..2e5a63088 100644 --- a/command/node_drain.go +++ b/command/node_drain.go @@ -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 {