[xray] Track ray.get calls as task dependencies (#2362)

This commit is contained in:
Stephanie Wang
2018-07-27 14:59:17 -04:00
committed by Robert Nishihara
parent 5b015f9a79
commit 6675361684
20 changed files with 472 additions and 198 deletions
@@ -109,6 +109,7 @@ public class RayNativeRuntime extends RayRuntime {
WorkerContext.currentWorkerId(),
UniqueID.nil,
isWorker,
WorkerContext.currentTask().taskId,
0
);
@@ -237,4 +238,4 @@ public class RayNativeRuntime extends RayRuntime {
throw new TaskExecutionException(log, e);
}
}
}
}
@@ -26,13 +26,13 @@ public class DefaultLocalSchedulerClient implements LocalSchedulerLink {
private long client = 0;
public DefaultLocalSchedulerClient(String schedulerSockName, UniqueID clientId, UniqueID actorId,
boolean isWorker, long numGpus) {
boolean isWorker, UniqueID driverId, long numGpus) {
client = _init(schedulerSockName, clientId.getBytes(), actorId.getBytes(), isWorker,
numGpus);
driverId.getBytes(), numGpus);
}
private static native long _init(String localSchedulerSocket, byte[] workerId, byte[] actorId,
boolean isWorker, long numGpus);
boolean isWorker, byte[] driverTaskId, long numGpus);
private static native byte[] _computePutId(long client, byte[] taskId, int putIndex);