Skip to content

fix: fix autoscaling config type#281

Open
dulaj-me wants to merge 1 commit intonextfrom
dulaj/autoscaling-configs
Open

fix: fix autoscaling config type#281
dulaj-me wants to merge 1 commit intonextfrom
dulaj/autoscaling-configs

Conversation

@dulaj-me
Copy link
Contributor

No description provided.

environment_variables: dict[str, str] = field(default_factory=dict[str, str])
command: Optional[list[str]] = None
autoscaling: dict[str, str] = field(default_factory=dict[str, str])
autoscaling: dict[str, Union[str, int, float]] = field(default_factory=dict[str, Union[str, int, float]])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we do autoscaling['target'] = float(autoscaling['target'] before sending it in the request? so that existing configs work with the backend change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still wondering if we can just greenfield this at this stage. Otherwise, very least we should show a deprecation warning for str floats imo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants