Commit e6a7d88
Fix wait command to always check replica count
Previously, the wait command would trust UpdateStatus.State when present
without verifying that all replicas were actually running. This could
cause the command to exit successfully even when some tasks were still
starting or had failed.
Now we always check that running tasks match total tasks before
considering a service as done, matching the behavior of docker-stack-wait.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent d782389 commit e6a7d88
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments