mirror of
https://github.com/vale981/ray
synced 2025-03-05 18:11:42 -05:00
[Java]Get next job id only in driver (#20813)
## Why are these changes needed? Job id is only used in driver, we should not get it in WORKER.
This commit is contained in:
parent
4b9524ed76
commit
f481081904
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public final class RayNativeRuntime extends AbstractRayRuntime {
|
|||
rayConfig.nodeManagerPort = nodeInfo.getNodeManagerPort();
|
||||
}
|
||||
|
||||
if (rayConfig.getJobId() == JobId.NIL) {
|
||||
if (rayConfig.workerMode == WorkerType.DRIVER && rayConfig.getJobId() == JobId.NIL) {
|
||||
rayConfig.setJobId(gcsClient.nextJobId());
|
||||
}
|
||||
int numWorkersPerProcess =
|
||||
|
|
Loading…
Add table
Reference in a new issue