-
Notifications
You must be signed in to change notification settings - Fork 39
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
Change resync_rh
to None by default and match Ray version.
#1020
Conversation
resync_rh
to False by default.resync_rh
to None by default.
d3c4c86
to
3ff0ef9
Compare
resync_rh
to None by default.resync_rh
to None by default and match Ray version.
stream_logs=True, | ||
) | ||
|
||
if installed_editable_locally or resync_rh: |
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.
if resync_rh
is False, that means it's explicitly set and we shouldn't resync even if it is an editable
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.
I won't even enter this function if resync_rh
is False
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.
if installed_editable
is True but resync_rh
is False it'll still enter this right?
restart_ray: bool = True, | ||
restart_proxy: bool = False, | ||
logs_level: str = None, | ||
): | ||
"""Restart the RPC server. | ||
|
||
Args: | ||
resync_rh (bool): Whether to resync runhouse. (Default: ``True``) | ||
resync_rh (bool): Whether to resync runhouse. Specifying False will not sync Runhouse under any circumstance. If it is None, then it will sync if Runhouse is not installed on the cluster or if locally it is installed as editable. (Default: ``None``) |
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.
I think we don't need to specify the behavior for False or True, should be pretty self explanatory.
resync_rh (bool): Whether to resync runhouse. Specifying False will not sync Runhouse under any circumstance. If it is None, then it will sync if Runhouse is not installed on the cluster or if locally it is installed as editable. (Default: ``None``) | |
resync_rh (bool): Whether to resync runhouse. By default, it will sync if Runhouse is not installed on the cluster or if locally it is installed as editable. (Default: ``None``) |
local_ray_version_call = subprocess.run( | ||
["pip freeze | grep ray"], | ||
stdout=subprocess.PIPE, | ||
stderr=subprocess.PIPE, | ||
shell=True, | ||
) |
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.
Do you have an existing helper from the new package functionality to grab the local version for a package? Better not to have to handle edge cases here like editable / local installs.
dcec26c
to
0531ebc
Compare
3ff0ef9
to
790f5bb
Compare
0531ebc
to
c75b4db
Compare
790f5bb
to
3499ea8
Compare
Logic is now as follows.
resync_rh
isNone
by default. In this case or ifresync_rh
is just set toTrue
:If
resync_rh
is False, then we for sure do not sync Runhouse in any way.