-
Notifications
You must be signed in to change notification settings - Fork 6k
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
[Java worker] Migrate task execution and submission on top of core worker #5370
Conversation
@raulchen Folder structure updated. Can you take a look? |
Test PASSed. |
Test PASSed. |
java/runtime/src/main/java/org/ray/runtime/AbstractRayRuntime.java
Outdated
Show resolved
Hide resolved
java/runtime/src/main/java/org/ray/runtime/AbstractRayRuntime.java
Outdated
Show resolved
Hide resolved
java/runtime/src/main/java/org/ray/runtime/RayNativeRuntime.java
Outdated
Show resolved
Hide resolved
java/runtime/src/main/java/org/ray/runtime/actor/NativeRayActor.java
Outdated
Show resolved
Hide resolved
java/runtime/src/main/java/org/ray/runtime/actor/NativeRayActor.java
Outdated
Show resolved
Hide resolved
java/runtime/src/main/java/org/ray/runtime/functionmanager/FunctionDescriptor.java
Show resolved
Hide resolved
java/runtime/src/main/java/org/ray/runtime/object/NativeObjectStore.java
Outdated
Show resolved
Hide resolved
java/runtime/src/main/java/org/ray/runtime/object/ObjectStoreProxy.java
Outdated
Show resolved
Hide resolved
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.
Thanks. I looked through the whole PR again. It looks pretty good. Left some small comments.
} else if (arg instanceof RayActor) { | ||
data = Serializer.encode(arg); | ||
} else if (arg instanceof NativeRayActor) { | ||
id = Ray.internal().put(arg).getId(); |
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.
Is this change intended?
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.
This came from #5061, which refactored serialization and also supports passing actor handles cross languages. I've reverted it in this PR to keep the logic consistent with master branch.
java/runtime/src/main/java/org/ray/runtime/task/TaskExecutor.java
Outdated
Show resolved
Hide resolved
src/ray/core_worker/lib/java/org_ray_runtime_RayNativeRuntime.cc
Outdated
Show resolved
Hide resolved
Test PASSed. |
Test PASSed. |
Test PASSed. |
Test PASSed. |
Test PASSed. |
Test PASSed. |
Test PASSed. |
Test PASSed. |
What do these changes do?
Since #5061 is too large, I submitted #5079 to migrate part of Java worker on top of the core worker. This PR is the continuation of #5079 to migrate task execution and submission of Java worker.
Related issue number
#4850
Linter
scripts/format.sh
to lint the changes in this PR.