Skip to content

Commit

Permalink
Fix cli error when there is autoscale
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Jul 19, 2024
1 parent 0430ae0 commit b1f0ee6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions moriarty/deploy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ def deploy_or_update(
):
update_params = UpdateEndpointParams.model_validate(endpoint)
update_params.need_restart = restart

if request_query_autoscale(endpoint_name=endpoint_name, api_url=api_url, token=token):
update_params.replicas = None

request_update_endpoint_with_params(
endpoint_name=endpoint_name,
api_url=api_url,
Expand Down

0 comments on commit b1f0ee6

Please sign in to comment.