mirror of
https://github.com/wassname/ray.git
synced 2026-07-07 23:27:27 +08:00
[xray] Track ray.get calls as task dependencies (#2362)
This commit is contained in:
committed by
Robert Nishihara
parent
5b015f9a79
commit
6675361684
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user