[Data] Revising resource allocator task scheduling decision to factor in pending task outputs#60639
Merged
alexeykudinkin merged 8 commits intomasterfrom Feb 3, 2026
Merged
[Data] Revising resource allocator task scheduling decision to factor in pending task outputs#60639alexeykudinkin merged 8 commits intomasterfrom
alexeykudinkin merged 8 commits intomasterfrom
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request revises the resource allocator's task scheduling decision to be more robust, especially concerning object store memory. It introduces a fallback mechanism to estimate the size of pending task outputs when no historical data is available, using target_max_block_size. This estimate is then used to check if there is sufficient object store memory budget before submitting a new task.
The overall logic is sound and improves scheduling decisions. However, I found a critical issue in resource_manager.py where self._metrics is used instead of op.metrics, which will lead to an AttributeError.
1cf767c to
33cf32d
Compare
bveeramani
approved these changes
Feb 3, 2026
…max_block_size` until estimate becomes available Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
…e budget to hold pending task outputs Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
076d055 to
4b89bcf
Compare
Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
rayhhome
pushed a commit
to rayhhome/ray
that referenced
this pull request
Feb 4, 2026
… in pending task outputs (ray-project#60639) ## Description This change reverts back to behavior where 1. `can_submit_new_task` still evaluates whether to schedule task based on estimated task outputs pending in the buffer. 2. Estimate of the pending task outputs to rely on `target_max_block_size` until actual estimate becomes available ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: Alexey Kudinkin <ak@anyscale.com> Signed-off-by: Sirui Huang <ray.huang@anyscale.com>
Sparks0219
pushed a commit
to Sparks0219/ray
that referenced
this pull request
Feb 9, 2026
… in pending task outputs (ray-project#60639) ## Description This change reverts back to behavior where 1. `can_submit_new_task` still evaluates whether to schedule task based on estimated task outputs pending in the buffer. 2. Estimate of the pending task outputs to rely on `target_max_block_size` until actual estimate becomes available ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: Alexey Kudinkin <ak@anyscale.com>
elliot-barn
pushed a commit
that referenced
this pull request
Feb 9, 2026
… in pending task outputs (#60639) ## Description This change reverts back to behavior where 1. `can_submit_new_task` still evaluates whether to schedule task based on estimated task outputs pending in the buffer. 2. Estimate of the pending task outputs to rely on `target_max_block_size` until actual estimate becomes available ## 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> Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
elliot-barn
pushed a commit
that referenced
this pull request
Feb 9, 2026
… in pending task outputs (#60639) ## Description This change reverts back to behavior where 1. `can_submit_new_task` still evaluates whether to schedule task based on estimated task outputs pending in the buffer. 2. Estimate of the pending task outputs to rely on `target_max_block_size` until actual estimate becomes available ## 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>
ans9868
pushed a commit
to ans9868/ray
that referenced
this pull request
Feb 18, 2026
… in pending task outputs (ray-project#60639) ## Description This change reverts back to behavior where 1. `can_submit_new_task` still evaluates whether to schedule task based on estimated task outputs pending in the buffer. 2. Estimate of the pending task outputs to rely on `target_max_block_size` until actual estimate becomes available ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: Alexey Kudinkin <ak@anyscale.com> Signed-off-by: Adel Nour <ans9868@nyu.edu>
peterxcli
pushed a commit
to peterxcli/ray
that referenced
this pull request
Feb 25, 2026
… in pending task outputs (ray-project#60639) ## Description This change reverts back to behavior where 1. `can_submit_new_task` still evaluates whether to schedule task based on estimated task outputs pending in the buffer. 2. Estimate of the pending task outputs to rely on `target_max_block_size` until actual estimate becomes available ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: Alexey Kudinkin <ak@anyscale.com> Signed-off-by: peterxcli <peterxcli@gmail.com>
peterxcli
pushed a commit
to peterxcli/ray
that referenced
this pull request
Feb 25, 2026
… in pending task outputs (ray-project#60639) ## Description This change reverts back to behavior where 1. `can_submit_new_task` still evaluates whether to schedule task based on estimated task outputs pending in the buffer. 2. Estimate of the pending task outputs to rely on `target_max_block_size` until actual estimate becomes available ## Related issues > Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to ray-project#1234". ## Additional information > Optional: Add implementation details, API changes, usage examples, screenshots, etc. --------- Signed-off-by: Alexey Kudinkin <ak@anyscale.com> Signed-off-by: peterxcli <peterxcli@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This change reverts back to behavior where
can_submit_new_taskstill evaluates whether to schedule task based on estimated task outputs pending in the buffer.target_max_block_sizeuntil actual estimate becomes availableRelated issues
Additional information