diff --git a/src/main/java/org/gcube/vremanagement/executor/SmartExecutorImpl.java b/src/main/java/org/gcube/vremanagement/executor/SmartExecutorImpl.java index 97a3d7b..248a779 100644 --- a/src/main/java/org/gcube/vremanagement/executor/SmartExecutorImpl.java +++ b/src/main/java/org/gcube/vremanagement/executor/SmartExecutorImpl.java @@ -14,6 +14,7 @@ import org.gcube.vremanagement.executor.exception.PluginNotFoundException; import org.gcube.vremanagement.executor.persistence.SmartExecutorPersistenceConnector; import org.gcube.vremanagement.executor.plugin.PluginState; import org.gcube.vremanagement.executor.scheduler.SmartExecutorScheduler; +import org.quartz.SchedulerException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -44,7 +45,15 @@ public class SmartExecutorImpl implements SmartExecutor { return uuid.toString(); } - + + /**{@inheritDoc}*/ + @Override + public void unSchedule(String executionIdentifier) throws SchedulerException { + SmartExecutorScheduler smartExecutorScheduler = SmartExecutorInitalizator.getSmartExecutorScheduler(); + UUID uuid = UUID.fromString(executionIdentifier); + smartExecutorScheduler.stop(uuid); + } + /**{@inheritDoc}*/ @Override @Deprecated @@ -94,4 +103,6 @@ public class SmartExecutorImpl implements SmartExecutor { throw new PluginInstanceNotFoundException(); } } + + }