Skip to content

Commit 5dafc39

Browse files
Levi080513claude
andcommitted
refactor: remove redundant curr_replicas from custom schedulers
The base RequestRouter class already provides an identical curr_replicas property. The overrides in both schedulers were purely redundant. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fccc8e3 commit 5dafc39

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

cluster-image-builder/serve/_replica_scheduler/chwbl_scheduler.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,6 @@ def on_request_completed(self, replica_id: ReplicaID, internal_request_id: str):
268268
f"{current_load} -> {new_load}"
269269
)
270270

271-
@property
272-
def curr_replicas(self) -> Dict[ReplicaID, RunningReplica]:
273-
"""Return the current replicas."""
274-
return self._replicas
275-
276271
def _extract_cache_key(self, payload, request_id: str) -> str:
277272
"""Extract cache key from OpenAI-compatible chat completions payload.
278273

cluster-image-builder/serve/_replica_scheduler/static_hash_scheduler.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,3 @@ def on_replica_actor_died(self, replica_id: ReplicaID):
108108
f"Remaining: {len(self._replicas)}"
109109
)
110110

111-
@property
112-
def curr_replicas(self) -> Dict[ReplicaID, RunningReplica]:
113-
"""Return the current replicas."""
114-
return self._replicas

0 commit comments

Comments
 (0)