mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 23:09:51 +08:00
Revert heartbeat interval to keep ci stable (#12836)
* Revert heartbeat interval to keep ci stable * fix missing one
This commit is contained in:
@@ -34,7 +34,7 @@ def test_shutdown():
|
||||
@pytest.mark.parametrize(
|
||||
"ray_start_cluster_head", [
|
||||
generate_system_config_map(
|
||||
num_heartbeats_timeout=2, object_timeout_milliseconds=12345)
|
||||
num_heartbeats_timeout=20, object_timeout_milliseconds=12345)
|
||||
],
|
||||
indirect=True)
|
||||
def test_system_config(ray_start_cluster_head):
|
||||
@@ -52,12 +52,12 @@ def test_system_config(ray_start_cluster_head):
|
||||
@ray.remote
|
||||
def f():
|
||||
assert ray._config.object_timeout_milliseconds() == 12345
|
||||
assert ray._config.num_heartbeats_timeout() == 2
|
||||
assert ray._config.num_heartbeats_timeout() == 20
|
||||
|
||||
ray.get([f.remote() for _ in range(5)])
|
||||
|
||||
cluster.remove_node(worker, allow_graceful=False)
|
||||
time.sleep(0.9)
|
||||
time.sleep(1)
|
||||
assert ray.cluster_resources()["CPU"] == 2
|
||||
|
||||
time.sleep(2)
|
||||
|
||||
Reference in New Issue
Block a user