Skip to content

Commit eab0c11

Browse files
committed
add Stopped state to VM
1 parent 7461874 commit eab0c11

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/deployment/health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def deployment_status(id_: Identifier) -> BranchServiceStatus:
7272
if status.phase == Phase.failed:
7373
return BranchServiceStatus.ERROR
7474

75-
if status.phase in {Phase.succeeded, Phase.pending}:
75+
if status.phase in {Phase.succeeded, Phase.stopped, Phase.pending}:
7676
return BranchServiceStatus.STOPPED
7777

7878
if status.services is None or not status.services.get("postgres", False):

src/deployment/kubernetes/neonvm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ class Phase(Enum):
4646
scaling = "Scaling"
4747
pending = "Pending"
4848
succeeded = "Succeeded"
49+
stopped = "Stopped"
4950
failed = "Failed"
5051

5152

0 commit comments

Comments
 (0)