diff --git a/src/main/java/org/gcube/portlets/user/databasesmanager/server/GWTdbManagerServiceImpl.java b/src/main/java/org/gcube/portlets/user/databasesmanager/server/GWTdbManagerServiceImpl.java index 488414e..4d5e77d 100644 --- a/src/main/java/org/gcube/portlets/user/databasesmanager/server/GWTdbManagerServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/databasesmanager/server/GWTdbManagerServiceImpl.java @@ -643,11 +643,11 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements // create data structure ComputationOutput outputData = new ComputationOutput(); - + // computation id String computationId = startComputation(algorithmId, inputParameters, outputData, scope, UID); - + // get JobID if (checkJob(UID)) { // if the computation has not been removed // the job uid is present @@ -1810,6 +1810,7 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements StatisticalManagerFactory factory = StatisticalManagerDSL .createStateful().build(); + SMComputation computation = factory.getComputation(computationId); SMOperationStatus status = SMOperationStatus.values()[computation .operationStatus()]; @@ -2014,13 +2015,13 @@ public class GWTdbManagerServiceImpl extends RemoteServiceServlet implements StatisticalManagerFactory factory = getFactory(scope); try { factory.removeComputation(computationId); + logger.info("Computation with UID: "+ uidSubmitQuery + " removed"); // remove submit query result refreshDataOnServer(uidSubmitQuery); // System.out.println("computation removed"); isComputationRemoved = true; } catch (Exception e) { // e.printStackTrace(); - logger.info("dbmanager-> Could not remove the computation ID " + computationId + " corresponding to jobID "