-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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] Rename get_timeout_milliseconds
to get_check_signal_interval_milliseconds
#49677
[core] Rename get_timeout_milliseconds
to get_check_signal_interval_milliseconds
#49677
Conversation
int64_t batch_timeout = std::max(RayConfig::instance().get_timeout_milliseconds(), | ||
int64_t(10 * batch_ids.size())); | ||
int64_t batch_timeout = | ||
std::max(RayConfig::instance().get_iteration_timeout_milliseconds(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this config is used in multiple places, does get_iteration_timeout
reflect all cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think so. All of them follow the pattern of using a shorter timeout for each iteration or batch and breaking when certain conditions are met or when a timeout occurs.
…to 20250106-devbox1-tmux-14-ray
get_timeout_milliseconds
to get_iteration_timeout_milliseconds
get_timeout_milliseconds
to check_signal_interval_milliseconds
src/ray/common/ray_config_def.h
Outdated
@@ -247,7 +247,7 @@ RAY_CONFIG(uint64_t, raylet_death_check_interval_milliseconds, 1000) | |||
|
|||
/// These are used by the worker to set timeouts and to batch requests when | |||
/// getting objects. | |||
RAY_CONFIG(int64_t, get_timeout_milliseconds, 1000) | |||
RAY_CONFIG(int64_t, check_signal_interval_milliseconds, 1000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RAY_CONFIG(int64_t, check_signal_interval_milliseconds, 1000) | |
RAY_CONFIG(int64_t, get_check_signal_interval_milliseconds, 1000) |
nit, it's check signal during get.
Can you add a comment as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also added comments
get_timeout_milliseconds
to check_signal_interval_milliseconds
get_timeout_milliseconds
to get_check_signal_interval_milliseconds
Why are these changes needed?
#49444 (comment)
Discuss with @jjyao. Rename
get_timeout_milliseconds
tocheck_signal_interval_milliseconds
.Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.