Do not contribute if post compute fails
Closed this issue · 1 comments
zguesmi commented
2020-10-06 13:57:11.735 INFO 6 --- [ task-117] com.iexec.worker.compute.ComputeService : Saved stdout file [path:/tmp/iexec-worker-cloud-nctu-goerli/cloud-nctu-goerli-worker1/0x930d6b2682b4ab343ac781014519369bb4620fbd2f0f7cb18b47da57072b58c0/output/stdout.txt]
2020-10-06 13:57:11.736 ERROR 6 --- [ task-117] com.iexec.common.utils.FileHelper : Failed to read file [filePath:/tmp/iexec-worker-cloud-nctu-goerli/cloud-nctu-goerli-worker1/0x930d6b2682b4ab343ac781014519369bb4620fbd2f0f7cb18b47da57072b58c0/output/computed.json]
2020-10-06 13:57:11.736 ERROR 6 --- [ task-117] com.iexec.common.utils.IexecFileHelper : Failed to read compute file (invalid path)[chainTaskId:0x930d6b2682b4ab343ac781014519369bb4620fbd2f0f7cb18b47da57072b58c0, computedFilePath:/tmp/iexec-worker-cloud-nctu-goerli/cloud-nctu-goerli-worker1/0x930d6b2682b4ab343ac781014519369bb4620fbd2f0f7cb18b47da57072b58c0/output/]
2020-10-06 13:57:11.736 ERROR 6 --- [ task-117] com.iexec.worker.compute.ComputeService : Failed to getComputedFile (computed.json missing)[chainTaskId:0x930d6b2682b4ab343ac781014519369bb4620fbd2f0f7cb18b47da57072b58c0]
2020-10-06 13:57:11.736 INFO 6 --- [ task-117] c.i.w.executor.TaskNotificationService : update replicate request [chainTaskId:0x930d6b2682b4ab343ac781014519369bb4620fbd2f0f7cb18b47da57072b58c0, status:COMPUTED, details:ReplicateStatusDetails(chainReceipt=null, resultLink=null, chainCallbackData=null, errorMessage=null, cause=null, stdout=null)]
2020-10-06 13:57:11.904 INFO 6 --- [ task-117] c.i.worker.feign.CustomCoreFeignClient : COMPUTED [chainTaskId:0x930d6b2682b4ab343ac781014519369bb4620fbd2f0f7cb18b47da57072b58c0]
2020-10-06 13:57:11.905 INFO 6 --- [ task-117] c.i.w.executor.TaskNotificationService : update replicate response [chainTaskId:0x930d6b2682b4ab343ac781014519369bb4620fbd2f0f7cb18b47da57072b58c0, status:COMPUTED, next:PLEASE_CONTRIBUTE]
2020-10-06 13:57:11.907 INFO 6 --- [ task-118] c.i.w.executor.TaskNotificationService : update replicate request [chainTaskId:0x930d6b2682b4ab343ac781014519369bb4620fbd2f0f7cb18b47da57072b58c0, status:CONTRIBUTING, details:null]
2020-10-06 13:57:12.392 INFO 6 --- [ task-118] c.i.worker.feign.CustomCoreFeignClient : CONTRIBUTING [chainTaskId:0x930d6b2682b4ab343ac781014519369bb4620fbd2f0f7cb18b47da57072b58c0]
jeremyjams commented
Fixed with #345.
(1) A Docker run execution is now considered as successful if the container exit code is zero (POSIX standard).
(2) A worker will stop its workflow right after the post-compute stage if the computed.json
file is not found.