Skip to content

Commit

Permalink
Refine
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuhong Guo committed May 27, 2019
1 parent fe555b7 commit 1e1fd28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions java/runtime/src/main/java/org/ray/runtime/task/TaskSpec.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public TaskSpec(
this.newActorHandles = newActorHandles;
this.args = args;
this.numReturns = numReturns;
returnIds = new ObjectId[numReturns];
for (int i = 0; i < numReturns; ++i) {
returnIds[i] = IdUtil.computeReturnId(taskId, i + 1);
}
this.resources = resources;
this.language = language;
if (language == TaskLanguage.JAVA) {
Expand All @@ -119,10 +123,6 @@ public TaskSpec(
}
this.functionDescriptor = functionDescriptor;
this.executionDependencies = new ArrayList<>();
returnIds = new ObjectId[numReturns];
for (int i = 0; i < numReturns; ++i) {
returnIds[i] = IdUtil.computeReturnId(taskId, i + 1);
}
}

public JavaFunctionDescriptor getJavaFunctionDescriptor() {
Expand Down

0 comments on commit 1e1fd28

Please sign in to comment.