Skip to content

Commit 8dbee20

Browse files
HyeockJinKimclaude
andauthored
fix(BA-6035): split RouteHealthRecord into ReplicaProbeTarget + ReplicaHealthStatus (#11632)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1fdb5a1 commit 8dbee20

45 files changed

Lines changed: 1284 additions & 905 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

changes/11632.enhance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Split route health Valkey record into ReplicaProbeTarget (probe config) and ReplicaHealthStatus (TTL-based result), removing initial_delay from Valkey and switching to DB-based timeout in check_warming_up_health.

src/ai/backend/client/cli/v2/deployment/revision.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def add(deployment_id: str, config: str, preset_id: str | None, auto_activate: b
4949
data["deployment_id"] = deployment_id
5050
if preset_id is not None:
5151
data["revision_preset_id"] = preset_id
52-
data["auto_activate"] = auto_activate
52+
if auto_activate:
53+
data.setdefault("options", {})["auto_activate"] = True
5354
body = AddRevisionInput.model_validate(data)
5455

5556
async def _run() -> None:

src/ai/backend/common/clients/valkey_client/valkey_schedule/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
HealthCheckStatus,
33
HealthStatus,
44
KernelStatus,
5-
RouteHealthRecord,
65
ValkeyScheduleClient,
76
)
7+
from .types import ReplicaHealthResult, ReplicaHealthStatus, ReplicaProbeTarget
88

99
__all__ = [
1010
"HealthCheckStatus",
1111
"HealthStatus",
1212
"KernelStatus",
13-
"RouteHealthRecord",
13+
"ReplicaHealthResult",
14+
"ReplicaHealthStatus",
15+
"ReplicaProbeTarget",
1416
"ValkeyScheduleClient",
1517
]

0 commit comments

Comments
 (0)