[ server ] [ scheduler ]- fix bug -1
This commit is contained in:
@@ -106,7 +106,7 @@ public class ExecutionResultDaemonHandler {
|
||||
.supplyAsync(
|
||||
() -> {
|
||||
while (true) {
|
||||
|
||||
// todo 多条命令时,这里只能获取到一个结果
|
||||
if (CollectionUtils.isNotEmpty(commandReaderConfig.getExecutionResult())) {
|
||||
return commandReaderConfig.getExecutionResult();
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user