Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Allow autoscale with a minimum of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Porges committed Jul 13, 2022
1 parent d71c558 commit 4575390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pytypes/onefuzztypes/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,9 @@ class Scaleset(BaseModel):

class AutoScale(BaseModel):
scaleset_id: UUID
min: int = Field(ge=1)
min: int = Field(ge=0)
max: int = Field(ge=1)
default: int = Field(ge=1)
default: int = Field(ge=0)
scale_out_amount: int = Field(ge=1)
scale_out_cooldown: int = Field(ge=1)
scale_in_amount: int = Field(ge=1)
Expand Down
2 changes: 1 addition & 1 deletion src/pytypes/onefuzztypes/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class ScalesetUpdate(BaseRequest):
class AutoScaleOptions(BaseModel):
min: int = Field(ge=0)
max: int = Field(ge=1)
default: int = Field(ge=1)
default: int = Field(ge=0)
scale_out_amount: int = Field(ge=1)
scale_out_cooldown: int = Field(ge=1)
scale_in_amount: int = Field(ge=1)
Expand Down

0 comments on commit 4575390

Please sign in to comment.