mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 15:56:55 +08:00
Increase timeout for ray.wait test (#5273)
* Increase test timeout for ray.wait * make sure the actor is scheduled
This commit is contained in:
@@ -2680,7 +2680,7 @@ def test_decorated_method(ray_start_regular):
|
||||
@pytest.mark.skipif(
|
||||
pytest_timeout is None,
|
||||
reason="Timeout package not installed; skipping test that may hang.")
|
||||
@pytest.mark.timeout(10)
|
||||
@pytest.mark.timeout(20)
|
||||
@pytest.mark.parametrize(
|
||||
"ray_start_cluster", [{
|
||||
"num_cpus": 1,
|
||||
@@ -2744,9 +2744,13 @@ def test_ray_wait_dead_actor(ray_start_cluster):
|
||||
_, self.unready = ray.wait(self.unready, timeout=0)
|
||||
return len(self.unready) == 0
|
||||
|
||||
def ping(self):
|
||||
return
|
||||
|
||||
# Repeatedly call ray.wait through the local actor until the exception for
|
||||
# the dead actor is received.
|
||||
parent_actor = ParentActor.remote(ping_ids)
|
||||
ray.get(parent_actor.ping.remote())
|
||||
failure_detected = False
|
||||
while not failure_detected:
|
||||
failure_detected = ray.get(parent_actor.wait.remote())
|
||||
|
||||
Reference in New Issue
Block a user