提交 b6567ac0 编写于 作者: 薛            之            谦's avatar 薛 之 谦

Merge remote-tracking branch 'origin/ws-3.0.0' into ws-3.0.0

......@@ -76,7 +76,7 @@ public class MasterConfig implements Validator {
/**
* state wheel check interval, if this value is bigger, may increase the delay of task/processInstance.
*/
private Duration stateWheelInterval = Duration.ofMillis(5);
private Duration stateWheelInterval = Duration.ofSeconds(5);
private double maxCpuLoadAvg = -1;
private double reservedMemory = 0.3;
private Duration failoverInterval = Duration.ofMinutes(10);
......
......@@ -197,10 +197,10 @@ public class DependentExecute {
ProcessInstance lastManualProcess = processService.findLastManualProcessInterval(definitionCode, dateInterval);
if (lastManualProcess == null) {
if (lastManualProcess == null || lastManualProcess.getEndTime() == null) {
return lastSchedulerProcess;
}
if (lastSchedulerProcess == null) {
if (lastSchedulerProcess == null || lastSchedulerProcess.getEndTime() == null) {
return lastManualProcess;
}
......
......@@ -102,7 +102,7 @@ master:
task-commit-retry-times: 5
# master commit task interval
task-commit-interval: 1s
state-wheel-interval: 5
state-wheel-interval: 5s
# master max cpuload avg, only higher than the system cpu load average, master server can schedule. default value -1: the number of cpu cores * 2
max-cpu-load-avg: -1
# master reserved memory, only lower than system available memory, master server can schedule. default value 0.3, the unit is G
......
......@@ -104,7 +104,7 @@ master:
task-commit-retry-times: 5
# master commit task interval
task-commit-interval: 1s
state-wheel-interval: 5
state-wheel-interval: 5s
# master max cpuload avg, only higher than the system cpu load average, master server can schedule. default value -1: the number of cpu cores * 2
max-cpu-load-avg: -1
# master reserved memory, only lower than system available memory, master server can schedule. default value 0.3, the unit is G
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册