MCPcopy
hub / github.com/ray-project/ray / assert_deployments_live

Function assert_deployments_live

python/ray/serve/tests/test_cli.py:24–32  ·  view source on GitHub ↗

Checks if all deployments named in names have at least 1 living replica.

(ids: List[DeploymentID])

Source from the content-addressed store, hash-verified

22
23
24def assert_deployments_live(ids: List[DeploymentID]):
25 """Checks if all deployments named in names have at least 1 living replica."""
26
27 running_actor_names = [actor["name"] for actor in list_actors()]
28
29 for deployment_id in ids:
30 prefix = f"{deployment_id.app_name}#{deployment_id.name}"
31 msg = f"Deployment {deployment_id} is not live"
32 assert any(prefix in actor_name for actor_name in running_actor_names), msg
33
34
35def check_http_response(

Callers 2

test_deploy_basicFunction · 0.85

Calls 1

list_actorsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…