Skip to content

Commit 6345e49

Browse files
author
Jérémy James Toussaint
committed
Pull post compute image
1 parent eb1287c commit 6345e49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/iexec/worker/docker/ComputationService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ public boolean runTeeComputation(TaskDescription taskDescription,
153153
long maxExecutionTime = taskDescription.getMaxExecutionTime();
154154
String teePostComputeImage = taskDescription.getTeePostComputeImage();
155155

156+
if (!customDockerClient.pullImage(chainTaskId, teePostComputeImage)) {
157+
String msg = "runTeeComputation failed (pullImage teePostComputeImage)";
158+
log.error(msg + " [chainTaskId:{},teePostComputeImage:{}]", chainTaskId, teePostComputeImage);
159+
return false;
160+
}
156161

157162
String secureSessionId = sconeTeeService.createSconeSecureSession(contributionAuth);
158163

0 commit comments

Comments
 (0)