RuffyScripter: increase overall command timeout to 4m.

This commit is contained in:
Johannes Mockenhaupt 2017-11-12 17:07:59 +01:00
parent 1da8f2080f
commit 7b7bc6efb6
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -232,7 +232,7 @@ public class RuffyScripter implements RuffyCommands {
List<String> violations = cmd.validateArguments();
if (!violations.isEmpty()) {
log.error("Command argument violations: " + Joiner.on(", ").join(violations));
return new CommandResult().state(readPumpStateInternal());
return new CommandResult().success(false).state(readPumpStateInternal());
}
// TODO simplify, hard to reason about exists
@ -358,7 +358,7 @@ public class RuffyScripter implements RuffyCommands {
}
private long calculateOverallCmdTimeout() {
return System.currentTimeMillis() + 3 * 60 * 1000;
return System.currentTimeMillis() + 4 * 60 * 1000;
}
/**