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

Method init

python/ray/util/client/__init__.py:384–389  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

382 return self.get_context().is_connected(*args, **kwargs)
383
384 def init(self, *args, **kwargs):
385 ret = self.get_context().init(*args, **kwargs)
386 global _lock, _all_contexts
387 with _lock:
388 _all_contexts.add(self._cxt.handler)
389 return ret
390
391 def shutdown(self, *args, **kwargs):
392 global _lock, _all_contexts

Callers 15

connectMethod · 0.45
connectMethod · 0.45
test_driver_processMethod · 0.45
ray_initFunction · 0.45
test_actor_statsFunction · 0.45
test_pg_statsFunction · 0.45
test_task_statsFunction · 0.45
test_usage_stats_promptFunction · 0.45

Calls 2

get_contextMethod · 0.95
addMethod · 0.45

Tested by 15

test_driver_processMethod · 0.36
ray_initFunction · 0.36
test_actor_statsFunction · 0.36
test_pg_statsFunction · 0.36
test_task_statsFunction · 0.36
test_usage_stats_promptFunction · 0.36
test_get_cluster_idFunction · 0.36
test_hardware_usagesFunction · 0.36