added humidity executor to deployment

This commit is contained in:
2021-12-18 16:18:54 +01:00
parent cab63d6b76
commit 0022ebaf88
4 changed files with 62 additions and 17 deletions

View File

@@ -29,7 +29,6 @@ public class Executor extends ExecutorBase {
protected
String execution(String inputData) {
executorLogger.info("TEST");
executorLogger.info("Executor | Starting execution with inputData: " + inputData);
ScriptEngineManager mgr = new ScriptEngineManager();
@@ -45,10 +44,11 @@ public class Executor extends ExecutorBase {
}
try {
TimeUnit.SECONDS.sleep(5);
TimeUnit.SECONDS.sleep(1);
} catch (InterruptedException e) {
executorLogger.log(Level.SEVERE, e.getLocalizedMessage(), e);
Thread.currentThread().interrupt();
return result;
// executorLogger.log(Level.SEVERE, e.getLocalizedMessage(), e);
// Thread.currentThread().interrupt();
}
executorLogger.info("Executor | Finish execution");