MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / stop_ray_cluster

Function stop_ray_cluster

trinity/utils/dlc_utils.py:151–165  ·  view source on GitHub ↗

Stop the ray cluster by sending a signal to the cluster status actor.

(namespace: str)

Source from the content-addressed store, hash-verified

149
150
151def stop_ray_cluster(namespace: str):
152 """
153 Stop the ray cluster by sending a signal to the cluster status actor.
154 """
155 cluster_status = (
156 ray.remote(ClusterStatus)
157 .options(
158 name=CLUSTER_ACTOR_NAME,
159 namespace=namespace,
160 get_if_exists=True,
161 )
162 .remote()
163 )
164 ray.get(cluster_status.finish.remote())
165 logger.info("Stopping ray cluster...")

Callers 2

runFunction · 0.90
mainFunction · 0.90

Calls 2

remoteMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected