MCPcopy Index your code
hub / github.com/ray-project/ray / get_runtime_context

Method get_runtime_context

python/ray/util/client/api.py:328–334  ·  view source on GitHub ↗

Return a Ray RuntimeContext describing the state on the server Returns: A RuntimeContext wrapping a client making get_cluster_info calls.

(self)

Source from the content-addressed store, hash-verified

326 )
327
328 def get_runtime_context(self):
329 """Return a Ray RuntimeContext describing the state on the server
330
331 Returns:
332 A RuntimeContext wrapping a client making get_cluster_info calls.
333 """
334 return _ClientWorkerPropertyAPI(self.worker).build_runtime_context()
335
336 # Client process isn't assigned any GPUs.
337 def get_gpu_ids(self) -> list:

Callers 15

test_driver_processMethod · 0.80
fMethod · 0.80
fMethod · 0.80
test_get_cluster_idFunction · 0.80
__init__Method · 0.80
runFunction · 0.80
_run_manyFunction · 0.80
get_current_actor_idFunction · 0.80

Calls 2

build_runtime_contextMethod · 0.80

Tested by 15

test_driver_processMethod · 0.64
fMethod · 0.64
fMethod · 0.64
test_get_cluster_idFunction · 0.64
get_node_idFunction · 0.64
hFunction · 0.64
ray_actor_idMethod · 0.64
ray_actor_idMethod · 0.64
__call__Method · 0.64
AFunction · 0.64
test_deploymentFunction · 0.64