[ server ] [ scheduler ]- fix bug -1

This commit is contained in:
zeaslity
2023-02-03 16:32:46 +08:00
parent 487e808c58
commit 87b1b2398b
6 changed files with 49 additions and 10 deletions

View File

@@ -106,7 +106,7 @@ public class ExecutionResultDaemonHandler {
.supplyAsync(
() -> {
while (true) {
// todo 多条命令时,这里只能获取到一个结果
if (CollectionUtils.isNotEmpty(commandReaderConfig.getExecutionResult())) {
return commandReaderConfig.getExecutionResult();
}

View File

@@ -0,0 +1,21 @@
package io.wdd.rpc.scheduler.job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
/**
* 间隔时间较长,定时更新数据库信息
* 1. APPInfo
* 2. 补全Agent的各项信息
* 3. 补全Agent存活失联状态
*
*/
public class ScheduleUpdateDBInfoJob extends QuartzJobBean {
@Override
protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
}
}

View File

@@ -27,6 +27,7 @@ public class BuildStatusScheduleTask {
@Value(value = "${octopus.status.healthy.cron}")
String healthyCronTimeExpress;
// todo 此时间可以更新Nacos配置更新 自动进行任务更新
@Value(value = "${octopus.status.healthy.start-delay}")
int healthyCheckStartDelaySeconds;