ray/doc/source/ray-core/doc_code
Eric Liang 38925f60d2
Add a get_if_exists option for simpler creation of named actors (#23344)
Getting or creating a named actor is a common pattern, however it is somewhat esoteric in how to achieve this. Add a utility function and test that it doesn't cause any scary error messages.

Actor.options(name="my_singleton", get_if_exists=True).remote(args)
2022-03-23 22:02:58 -07:00
..
actor-pool.py [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
actor-queue.py [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
actor-sync.py [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
get_or_create.py Add a get_if_exists option for simpler creation of named actors (#23344) 2022-03-23 22:02:58 -07:00
metrics_example.py [docs] sphinx gallery removal, migrate to ipynb (#22467) 2022-02-19 01:19:07 -08:00
runtime_env_example.py [runtime env][strong-typed API] Combine ParsedRuntimeEnv and RuntimeEnv into ray.runtime.RuntimeEnv (#22522) 2022-02-28 16:18:10 +08:00
tasks.py [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
tf_example.py [docs] sphinx gallery removal, migrate to ipynb (#22467) 2022-02-19 01:19:07 -08:00
torch_example.py [docs] sphinx gallery removal, migrate to ipynb (#22467) 2022-02-19 01:19:07 -08:00