mirror of
https://github.com/wassname/ray.git
synced 2026-07-15 11:25:40 +08:00
Add failure tests to test_reference_counting (#7400)
This commit is contained in:
@@ -198,10 +198,13 @@ def test_actor_reconstruction_without_task(ray_start_regular):
|
||||
# Kill the actor.
|
||||
pid = ray.get(actor.get_pid.remote())
|
||||
os.kill(pid, signal.SIGKILL)
|
||||
|
||||
# Wait until the actor is reconstructed.
|
||||
assert wait_for_condition(
|
||||
lambda: ray.worker.global_worker.core_worker.object_exists(obj_ids[1]),
|
||||
timeout_ms=5000)
|
||||
def check_reconstructed():
|
||||
worker = ray.worker.global_worker
|
||||
return worker.core_worker.object_exists(obj_ids[1])
|
||||
|
||||
assert wait_for_condition(check_reconstructed)
|
||||
|
||||
|
||||
def test_actor_reconstruction_on_node_failure(ray_start_cluster_head):
|
||||
|
||||
Reference in New Issue
Block a user