Skip to content

Commit d601de2

Browse files
committed
add explanatory comment
1 parent 12ef486 commit d601de2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/localstack-status.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ function getLocalStackStatus(
9191
if (healthCheck === true) {
9292
return "running";
9393
} else {
94+
// When the LS container is running, and the health check fails:
95+
// - If the previous status was "running", we are likely stopping LS
96+
// - If the previous status was "stopping", we are still stopping LS
9497
if (previousStatus === "running" || previousStatus === "stopping") {
9598
return "stopping";
9699
}

0 commit comments

Comments
 (0)