mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
[serve] Remove unused filter_tag
and errant str
redefinition (#22400)
This commit is contained in:
parent
df4b56d32e
commit
9c07eabab9
2 changed files with 4 additions and 8 deletions
|
@ -7,7 +7,6 @@ from ray.actor import ActorHandle
|
|||
from ray.serve.config import DeploymentConfig, ReplicaConfig
|
||||
from ray.serve.autoscaling_policy import AutoscalingPolicy
|
||||
|
||||
str = str
|
||||
EndpointTag = str
|
||||
ReplicaTag = str
|
||||
NodeId = str
|
||||
|
|
|
@ -1543,14 +1543,11 @@ class DeploymentStateManager:
|
|||
|
||||
def get_running_replica_infos(
|
||||
self,
|
||||
filter_tag: Optional[str] = None,
|
||||
) -> Dict[str, List[RunningReplicaInfo]]:
|
||||
replicas = {}
|
||||
for deployment_name, deployment_state in self._deployment_states.items():
|
||||
if filter_tag is None or deployment_name == filter_tag:
|
||||
replicas[deployment_name] = deployment_state.get_running_replica_infos()
|
||||
|
||||
return replicas
|
||||
return {
|
||||
name: deployment_state.get_running_replica_infos()
|
||||
for name, deployment_state in self._deployment_states.items()
|
||||
}
|
||||
|
||||
def get_deployment_configs(
|
||||
self, filter_tag: Optional[str] = None, include_deleted: Optional[bool] = False
|
||||
|
|
Loading…
Add table
Reference in a new issue