Skip to content

Commit 383555d

Browse files
committed
Forbid scaling.target <= 0
1 parent aa25964 commit 383555d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/dstack/_internal/core/models/configurations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ class ScalingSpec(CoreModel):
8080
Field(
8181
description="The target value of the metric. "
8282
"The number of replicas is calculated based on this number and automatically adjusts "
83-
"(scales up or down) as this metric changes"
83+
"(scales up or down) as this metric changes",
84+
gt=0,
8485
),
8586
]
8687
scale_up_delay: Annotated[

0 commit comments

Comments
 (0)