Fix test_actor_restart (#13901)

This commit is contained in:
Hao Chen
2021-02-06 06:08:43 +08:00
committed by GitHub
parent 4a3dd6858d
commit e1a5e5bad4
+2
View File
@@ -115,6 +115,8 @@ def test_actor_restart(ray_init_with_task_retry_delay):
ray.get(results[0])
except ray.exceptions.RayActorError:
results.pop(0)
else:
break
# Check all tasks that executed after the restart.
if results:
# The actor executed some tasks after the restart.