Skip to content

Commit

Permalink
Add log in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Jul 19, 2024
1 parent 9d44872 commit 8141541
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions moriarty/deploy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from moriarty.deploy.config import ConfigLoader
from moriarty.deploy.endpoint import Endpoint
from moriarty.envs import MORIARTY_MATRIX_API_URL_ENV, MORIARTY_MATRIX_TOKEN_ENV
from moriarty.log import logger
from moriarty.matrix.operator_.enums_ import MetricType
from moriarty.matrix.operator_.params import CreateEndpointParams, UpdateEndpointParams

Expand Down Expand Up @@ -179,6 +180,7 @@ def deploy_or_update(
update_params.need_restart = restart

if request_query_autoscale(endpoint_name=endpoint_name, api_url=api_url, token=token):
logger.info(f"Endpoint: {endpoint_name} has autoscale, update params will be ignored")
update_params.replicas = None

request_update_endpoint_with_params(
Expand Down

0 comments on commit 8141541

Please sign in to comment.