Repository navigation
[Data] Refactor DataContext to hold execution callback classes instead of instances - #61293
Merged
bveeramani merged 14 commits intoFeb 25, 2026
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request continues the refactoring of the execution callback system by moving to a static, class-based registration in DataContext. The changes in ray.data.context are clear and introduce a factory for collecting callback classes. Additionally, the SGLang example is significantly improved to properly support multi-GPU configurations (TP/PP), with corresponding documentation and test updates. My review includes a suggestion to simplify and improve the correctness of resource bundle creation in the SGLang engine, aligning it with patterns used elsewhere in the codebase.
Signed-off-by: Limark Dcunha <[email protected]>
limarkdcunha
force-pushed
the
task/execution-callback-simplify-diff-2
branch
from
February 24, 2026 23:04
e51e942 to
1633933
Compare
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
Signed-off-by: Limark Dcunha <[email protected]>
bveeramani
reviewed
Feb 25, 2026
Signed-off-by: Limark Dcunha <[email protected]>
bveeramani
approved these changes
Feb 25, 2026
bveeramani
enabled auto-merge (squash)
February 25, 2026 18:35
bveeramani
disabled auto-merge
February 25, 2026 18:35
bveeramani
enabled auto-merge (squash)
February 25, 2026 18:36
bveeramani
pushed a commit
that referenced
this pull request
Mar 25, 2026
…kage (#61405) Larger Issue Refactored the execution callback system from dynamic, per-job injection to static, eager initialization. DataContext now serves as a stateless registry of callback factories, enabling the StreamingExecutor to load all callbacks at startup. Each callback then self-configures or no-ops based on the runtime environment. Context This is Part 3 of a four-part change set intended to resolve the issue described above. Part 1 diff: #60480 Part 2 diff: #61293 Closes #60279. --------- Signed-off-by: Limark Dcunha <[email protected]> Signed-off-by: Limark Dcunha <[email protected]>
Lucas61000
pushed a commit
to Lucas61000/ray
that referenced
this pull request
May 15, 2026
…kage (ray-project#61405) Larger Issue Refactored the execution callback system from dynamic, per-job injection to static, eager initialization. DataContext now serves as a stateless registry of callback factories, enabling the StreamingExecutor to load all callbacks at startup. Each callback then self-configures or no-ops based on the runtime environment. Context This is Part 3 of a four-part change set intended to resolve the issue described above. Part 1 diff: ray-project#60480 Part 2 diff: ray-project#61293 Closes ray-project#60279. --------- Signed-off-by: Limark Dcunha <[email protected]> Signed-off-by: Limark Dcunha <[email protected]>
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.
Larger Issue
Refactored the execution callback system from dynamic, per-job injection to static, eager initialization. DataContext now serves as a stateless registry of callback factories, enabling the StreamingExecutor to load all callbacks at startup. Each callback then self-configures or no-ops based on the runtime environment.
Context
This is Part 2 of a four-part change set intended to resolve the issue described above.
Part 1 diff: #60480
Closes #60279.