Java call Python actor method use actor.call (#7614)

This commit is contained in:
fyrestone
2020-03-17 14:52:43 +08:00
committed by GitHub
parent ffa9df4683
commit 7697ea2be2
10 changed files with 127 additions and 46 deletions
@@ -67,8 +67,7 @@ public class JobSchedulerImpl implements JobScheduler {
case PYTHON:
byte[] workerContextBytes = buildPythonWorkerContext(
taskId, executionGraphPb, jobConfig);
waits.add(Ray.callPy((RayPyActor) worker,
"init", workerContextBytes));
waits.add(((RayPyActor)worker).call("init", workerContextBytes));
break;
default:
throw new UnsupportedOperationException(