-
Notifications
You must be signed in to change notification settings - Fork 651
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
FIX-#5045: Fix ray virtual_partition.wait with duplicate object refs #5058
Conversation
… object refs Signed-off-by: Jonathan Shi <jhshi@ponder.io>
Signed-off-by: Jonathan Shi <jhshi@ponder.io>
Codecov Report
@@ Coverage Diff @@
## master #5058 +/- ##
==========================================
+ Coverage 85.00% 89.65% +4.65%
==========================================
Files 253 254 +1
Lines 19130 19416 +286
==========================================
+ Hits 16261 17408 +1147
+ Misses 2869 2008 -861
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Jonathan Shi <jhshi@ponder.io>
|
||
Returns | ||
------- | ||
Tuple[List[ObjectIDType], List[ObjectIDType]] |
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.
Don't we return only one object here, i.e. just a list?
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 don't think so. See here: https://docs.ray.io/en/latest/_modules/ray/_private/worker.html#wait
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 believe if we specify the num_returns
parameter, then we wait until all of the passed ObjectRefs are available in the object store.
cc @modin-project/modin-ray
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 in this case since we're waiting on every single object, all of them would be completed and this would return ([list of objects], ())
. I kept the function like this so it would match with the behavior of ray.wait
, though we don't actually use the return value of the function anywhere.
Signed-off-by: Jonathan Shi jhshi@ponder.io
Introduces a new wrapper method for
ray.wait
that automatically getsnum_returns
to wait for every item in the list, and also removes duplicate object refs before passing it to ray.What do these changes do?
flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
git commit -s
virtual_partition.wait
failed if there are duplicate refs #5045docs/development/architecture.rst
is up-to-date