mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user