-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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][doc] ray.get with timeout=0 will warn behavior change in future ray releases. #31140
Conversation
Signed-off-by: rickyyx <[email protected]>
Signed-off-by: rickyyx <[email protected]>
Signed-off-by: rickyyx <[email protected]>
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.
Small comment, but looks good to me otherwise :)
Signed-off-by: rickyyx <[email protected]>
Signed-off-by: rickyyx <[email protected]>
Signed-off-by: rickyyx <[email protected]>
Signed-off-by: rickyyx <[email protected]>
Moved the test to |
Signed-off-by: rickyyx <[email protected]>
Signed-off-by: rickyyx <[email protected]>
In this case, is the behavior the same? We should make sure both prints the same warning for the same argument. |
No - ray client's get has a different behavior: i.e. it doens't block with |
what's the current behavior? Since it is not possible to do ray.get(timeout=0), it means ray client cannot do that as well? |
For ray client, |
@rickyyx gotcha. that's interesting... do you know how it is implemented? (they did custom implementation to make it work?) |
Yep, here: ray/python/ray/util/client/worker.py Lines 415 to 445 in 7f431d7
|
…e ray releases. (#31140) With ray. get(timeout=0) currently blocks until objects are ready, which is not the ideal behavior. Since there might be existing users depending on such behavior. We will fix this with a more gradual migration in future releases as we gather current usage. Besides this PR, we will: Reach out on the slack channel about this behavior change Add telemetry for usage. Fix this in future ray release
…e ray releases. (ray-project#31140) With ray. get(timeout=0) currently blocks until objects are ready, which is not the ideal behavior. Since there might be existing users depending on such behavior. We will fix this with a more gradual migration in future releases as we gather current usage. Besides this PR, we will: Reach out on the slack channel about this behavior change Add telemetry for usage. Fix this in future ray release Signed-off-by: tmynn <[email protected]>
Why are these changes needed?
With
ray. get(timeout=0)
currently blocks until objects are ready, which is not the ideal behavior. Since there might be existing users depending on such behavior. We will fix this with a more gradual migration in future releases as we gather current usage.Besides this PR, we will:
Related issue number
#28465
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.