Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions src/dstack/_internal/core/models/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions src/dstack/_internal/server/services/services/autoscalers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading