Skip to content

Commit 1bfe213

Browse files
committed
add status stopped
1 parent 12a78db commit 1bfe213

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/orchestrator/helpers.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func parseAppStatus(containers []container.Summary) []AppStatusInfo {
8484
}
8585

8686
// ...else we have multiple different status we calculate the status
87-
// among the possible left: {failed, stopping, starting}
87+
// among the possible left: {failed, stopping, stopped, starting}
8888
if slices.ContainsFunc(s, func(v Status) bool { return v == StatusFailed }) {
8989
appendResult(appPath, StatusFailed)
9090
continue
@@ -93,6 +93,10 @@ func parseAppStatus(containers []container.Summary) []AppStatusInfo {
9393
appendResult(appPath, StatusStopping)
9494
continue
9595
}
96+
if slices.ContainsFunc(s, func(v Status) bool { return v == StatusStopped }) {
97+
appendResult(appPath, StatusStopped)
98+
continue
99+
}
96100
if slices.ContainsFunc(s, func(v Status) bool { return v == StatusStarting }) {
97101
appendResult(appPath, StatusStarting)
98102
continue

0 commit comments

Comments
 (0)