Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core][dashboard][agent] add configurable timeouts for rt env agent and job_supervisor #47481

Merged
merged 4 commits into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions python/ray/_private/gcs_aio_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
)
import ray._private.utils
from ray._private.ray_constants import env_integer
import ray

# Number of executor threads. No more than this number of concurrent GcsAioClient calls
# can happen. Extra requests will need to wait for the existing requests to finish.
Expand Down Expand Up @@ -52,8 +53,8 @@ def __init__(
executor=None,
nums_reconnect_retry: int = 5,
):
# See https://github.com/ray-project/ray/blob/d0b46eff9ddcf9ec7256dd3a6dda33e7fb7ced95/python/ray/_raylet.pyx#L2693 # noqa: E501
timeout_ms = 1000 * (nums_reconnect_retry + 1)
# This must be consistent with GcsClient.__cinit__ in _raylet.pyx
timeout_ms = ray._config.py_gcs_connect_timeout_s() * 1000
self.inner = NewGcsClient.standalone(
str(address), cluster_id=None, timeout_ms=timeout_ms
)
Expand Down
Loading