[api] Clean up and document Actor name / lifetime API (#10332)

This commit is contained in:
Eric Liang
2020-08-27 13:38:39 -07:00
committed by GitHub
parent 17f465d5c1
commit bd245a1c18
11 changed files with 96 additions and 53 deletions
+1 -1
View File
@@ -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.