-
Notifications
You must be signed in to change notification settings - Fork 175
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
[BUG] Separate PartitionTask done from results #3155
Conversation
CodSpeed Performance ReportMerging #3155 will not alter performanceComparing Summary
|
f344065
to
11f77d9
Compare
11f77d9
to
9dc0c6e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3155 +/- ##
==========================================
+ Coverage 78.87% 79.00% +0.12%
==========================================
Files 624 634 +10
Lines 75925 76940 +1015
==========================================
+ Hits 59888 60788 +900
- Misses 16037 16152 +115
|
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.
Changes look fine to me. Wondering if this will cause any performance regressions though?
I think that is unlikely, given that the ray wait is performed somewhere else (after this PR it is done in the |
Also seeing now that the Ray trace no longer shows a long duration during This is much more expected... I think in the past Notice how the trace for tasks are also much nicer now... Much less time between when tasks are created compared when they actually run... |
This PR marks `PartitionTasks` as done only after they have been explicitly marked as done by the runner. Previously, we used the existence of the `.results` on a PartitionTask to determine whether or not it is done. However, this is not quite correct in the case of the RayRunner, which will attach a result containing a Ray ObjectRef, which is a future. This future may not (and is likely not) be completed yet at the time of PartitionTask creation. --------- Co-authored-by: Jay Chia <jaychia94@gmail.com@users.noreply.github.com>
This PR marks
PartitionTasks
as done only after they have been explicitly marked as done by the runner.Previously, we used the existence of the
.results
on a PartitionTask to determine whether or not it is done. However, this is not quite correct in the case of the RayRunner, which will attach a result containing a Ray ObjectRef, which is a future. This future may not (and is likely not) be completed yet at the time of PartitionTask creation.