Skip to content
Snippets Groups Projects
Commit 2d50ff9d authored by Ludovic Claude's avatar Ludovic Claude
Browse files

Update woken-messages to 2.8.4

parent f10df0c5
No related branches found
Tags 2.3.2
No related merge requests found
......@@ -47,9 +47,9 @@
<spring-data-jpa.version>1.10.11.RELEASE</spring-data-jpa.version>
<spring-boot-starter-actuator.version>1.4.7.RELEASE</spring-boot-starter-actuator.version>
<aspectjweaver.version>1.8.9</aspectjweaver.version>
<woken-messages.version>2.8.1</woken-messages.version>
<woken-messages.version>2.8.4</woken-messages.version>
<javax-inject.version>1</javax-inject.version>
<akka.version>2.5.18</akka.version>
<akka.version>2.5.19</akka.version>
<spring-context.version>4.3.4.RELEASE</spring-context.version>
<protobuf-java.version>3.1.0</protobuf-java.version>
......
......@@ -90,9 +90,17 @@ class AkkaConfiguration {
}
}
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
cluster.leave(cluster.selfAddress());
})
final Runnable leaveCluster = () -> cluster.leave(cluster.selfAddress());
actorSystem().registerOnTermination(leaveCluster);
cluster.registerOnMemberRemoved( () -> {
LOGGER.info("Exiting...");
cluster.leave(cluster.selfAddress());
actorSystem().registerOnTermination(() -> System.exit(0));
actorSystem().terminate();
});
Runtime.getRuntime().addShutdownHook(new Thread(leaveCluster)
);
LOGGER.info("Step 3/3: Cluster connected to Woken.");
......
......@@ -97,7 +97,7 @@ public class Experiment {
public ExperimentQuery prepareQuery(String user) {
if (model == null || model.getQuery() == null)
return new ExperimentQuery(null, null, null, null, null, Option.empty(), null, null, null, null, null, null);
return new ExperimentQuery(null, null, null, false,null, null, Option.empty(), null, null, null, null, null, null);
List<AlgorithmSpec> algorithms = new LinkedList<>();
Type algoList = new TypeToken<LinkedList<eu.hbp.mip.model.Algorithm>>(){}.getType();
......@@ -131,7 +131,8 @@ public class Experiment {
Option<FilterRule> filters = conv.toFilterRule(filtersJson);
UserId userId = new UserId(user);
return new ExperimentQuery(userId, variablesSeq, covariablesSeq, groupingSeq, filters, Option.empty(),
// TODO: covariablesMustExist argument should be set from a user intention? Or maybe automatically selected based on the list of algorithms???
return new ExperimentQuery(userId, variablesSeq, covariablesSeq, false, groupingSeq, filters, Option.empty(),
trainingDatasets, testingDatasets, algorithmsSeq, validationDatasets,
validationsSeq, Option.empty());
}
......
......@@ -106,7 +106,7 @@ public class MiningQuery {
Option<FilterRule> filters = conv.toFilterRule(filtersJson);
return new ch.chuv.lren.woken.messages.query.MiningQuery(userId,
variablesSeq, covariablesSeq, groupingSeq, filters, Option.empty(), datasets, scalaAlgorithm, Option.empty());
variablesSeq, covariablesSeq, true, groupingSeq, filters, Option.empty(), datasets, scalaAlgorithm, Option.empty());
}
@Override
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment