diff --git a/cli/command/service/progress/progress.go b/cli/command/service/progress/progress.go index 8e37489bdb6d..d8300ce8d2f5 100644 --- a/cli/command/service/progress/progress.go +++ b/cli/command/service/progress/progress.go @@ -275,7 +275,11 @@ func (u *replicatedProgressUpdater) update(service swarm.Service, tasks []swarm. continue } } - if _, nodeActive := activeNodes[task.NodeID]; nodeActive { + if task.NodeID != "" { + if _, nodeActive := activeNodes[task.NodeID]; nodeActive { + tasksBySlot[task.Slot] = task + } + } else { tasksBySlot[task.Slot] = task } }