diff --git a/src/dstack/_internal/core/models/runs.py b/src/dstack/_internal/core/models/runs.py index baecfac449..9748aa46f8 100644 --- a/src/dstack/_internal/core/models/runs.py +++ b/src/dstack/_internal/core/models/runs.py @@ -234,17 +234,6 @@ def pretty_format(self, resources_only: bool = False): return res -class Gateway(CoreModel): - gateway_name: Optional[str] - service_port: int - hostname: Optional[str] - public_port: int = 80 - secure: bool = False - - auth: bool = True - options: dict = {} - - class JobSSHKey(CoreModel): private: str public: str diff --git a/src/dstack/_internal/server/services/services/autoscalers.py b/src/dstack/_internal/server/services/services/autoscalers.py index f03f2957e3..1cc49a14c8 100644 --- a/src/dstack/_internal/server/services/services/autoscalers.py +++ b/src/dstack/_internal/server/services/services/autoscalers.py @@ -3,25 +3,12 @@ from abc import ABC, abstractmethod from typing import Optional -from pydantic import BaseModel - import dstack._internal.utils.common as common_utils from dstack._internal.core.models.configurations import DEFAULT_SCALING_WINDOW, ScalingSpec from dstack._internal.core.models.resources import Range from dstack._internal.proxy.gateway.schemas.stats import PerWindowStats -class ReplicaInfo(BaseModel): - """ - Attributes: - active (bool): starting/running/retrying or downscaled - timestamp (datetime.datetime): `submitted_at` for active, `last_processed_at` for inactive - """ - - active: bool - timestamp: datetime.datetime - - class BaseServiceScaler(ABC): @abstractmethod def get_desired_count(