Skip to content

[Data][Cherry-pick] Fixed min_scheduling_resources to fallback to incremental_resource_usage by default#60998

Merged
aslonnie merged 1 commit intoreleases/2.54.0from
ak/res-min-sch-fix-cp
Feb 12, 2026
Merged

[Data][Cherry-pick] Fixed min_scheduling_resources to fallback to incremental_resource_usage by default#60998
aslonnie merged 1 commit intoreleases/2.54.0from
ak/res-min-sch-fix-cp

Conversation

@alexeykudinkin
Copy link
Contributor

Description

Cherry-pick of #60997

Related issues

Link related issues: "Fixes #1234", "Closes #1234", or "Related to
#1234".

Additional information

Optional: Add implementation details, API changes, usage examples,
screenshots, etc.


Thank you for contributing to Ray! 🚀
Please review the Ray Contribution Guide before opening a pull request.

⚠️ Remove these instructions before submitting your PR.

💡 Tip: Mark as draft if you want early feedback, or ready for review when it's complete.

Description

Briefly describe what this PR accomplishes and why it's needed.

Related issues

Link related issues: "Fixes #1234", "Closes #1234", or "Related to #1234".

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

…urce_usage by default (#60997)

## Description

- Fixed min_scheduling_resources to fallback to
incremental_resource_usage by default
 - Explicitly overridden for `HashShufflingOperatorBase`

## Related issues
> Link related issues: "Fixes #1234", "Closes #1234", or "Related to
#1234".

## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.

---------

Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
@alexeykudinkin alexeykudinkin requested a review from a team as a code owner February 12, 2026 02:33
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the default implementation for min_scheduling_resources in PhysicalOperator to use incremental_resource_usage(). This is a sensible change that provides a better default. My review includes a suggestion to remove a now-redundant override in HashShufflingOperatorBase that was also added, which will simplify the code while retaining the same behavior due to the base class change.

Comment on lines +1050 to +1052
def min_scheduling_resources(self) -> ExecutionResources:
return self.incremental_resource_usage()

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This override of min_scheduling_resources is now redundant. The base class PhysicalOperator has been updated in this pull request to return self.incremental_resource_usage() by default. Since HashShufflingOperatorBase inherits this behavior, this explicit override can be removed to simplify the code.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@alexeykudinkin alexeykudinkin added the go add ONLY when ready to merge, run all tests label Feb 12, 2026
@aslonnie aslonnie merged commit 165b4aa into releases/2.54.0 Feb 12, 2026
5 of 6 checks passed
@aslonnie aslonnie deleted the ak/res-min-sch-fix-cp branch February 12, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants