Repository navigation
feat: reuse RayModule actors across DAG calls - #14
Merged
Merged
Conversation
SunnyHaze
force-pushed
the
feature/shared-actor-pools
branch
2 times, most recently
from
September 21, 2026 18:22
a43a025 to
62f28e1
Compare
SunnyHaze
force-pushed
the
feature/shared-actor-pools
branch
from
September 21, 2026 18:30
62f28e1 to
e4746b2
Compare
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.
Summary
This PR lets several logical DAG Calls reuse the actors and initialized model state of the same
RayModuleobject, without adding a new public pool abstraction.The compiler recognizes repeated calls to the same
RayModuleobject and maps their independentCallRefs to one private physical pool. DifferentRayModuleobjects remain independent, even when they wrap the same UDF class.Design
ActorPoolorentrypoint()API.run()method.Portarguments are dynamic inputs and participate in lineage.Portkeyword arguments such asstage="layout"are static per-Call arguments forwarded torun().Validation
267 passed, 2 skippedin the complete test suite on Python 3.12 with real local Ray execution.RayModulesubclasses.python -m compileall -q rayorch testpasses.git diff --checkpasses.