git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/workspace-task-executor-library@168966 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0ca4b15c3d
commit
7535dafa6e
|
@ -310,7 +310,11 @@ public class DataMinerAccessPoint {
|
||||||
*/
|
*/
|
||||||
public TaskOutput getOutput(TaskConfiguration taskConfiguration, TaskComputation taskComputation) throws TaskErrorException, TaskNotExecutableException {
|
public TaskOutput getOutput(TaskConfiguration taskConfiguration, TaskComputation taskComputation) throws TaskErrorException, TaskNotExecutableException {
|
||||||
|
|
||||||
TaskExecutionStatus tes = monitorStatus(taskConfiguration, taskComputation);
|
TaskExecutionStatus tes = null;
|
||||||
|
|
||||||
|
try{
|
||||||
|
|
||||||
|
tes = monitorStatus(taskConfiguration, taskComputation);
|
||||||
|
|
||||||
SClient sClient;
|
SClient sClient;
|
||||||
ComputationId computationId = DMConverter.toComputationId(taskComputation);
|
ComputationId computationId = DMConverter.toComputationId(taskComputation);
|
||||||
|
@ -338,6 +342,14 @@ public class DataMinerAccessPoint {
|
||||||
}
|
}
|
||||||
|
|
||||||
return new TaskOutput(tes, outputMessages);
|
return new TaskOutput(tes, outputMessages);
|
||||||
|
|
||||||
|
}catch(Exception e){
|
||||||
|
if(tes!=null)
|
||||||
|
removeTaskFromMemory(tes.getTaskConfiguration());
|
||||||
|
|
||||||
|
logger.error("Get output error: ",e);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue