Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #97 from andrewhsu/fix-progress
Browse files Browse the repository at this point in the history
[17.06] progress: Show progress of replicated tasks before they are assigned
  • Loading branch information
andrewhsu committed Jul 11, 2017
2 parents 2036e34 + f9cb056 commit 38f7bac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/cli/cli/command/service/progress/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 38f7bac

Please sign in to comment.