mirror of
https://github.com/wassname/ray.git
synced 2026-07-20 12:40:20 +08:00
[api] Clean up and document Actor name / lifetime API (#10332)
This commit is contained in:
@@ -241,7 +241,7 @@ def test_actor_restart_on_node_failure(ray_start_cluster):
|
||||
def ready(self):
|
||||
return
|
||||
|
||||
actor = RestartableActor.options(detached=True).remote()
|
||||
actor = RestartableActor.options(lifetime="detached").remote()
|
||||
ray.get(actor.ready.remote())
|
||||
results = [actor.increase.remote() for _ in range(100)]
|
||||
# Kill actor node, while the above task is still being executed.
|
||||
|
||||
Reference in New Issue
Block a user