[ server ] [ scheduler ]- script scheduler - 4

This commit is contained in:
zeaslity
2023-01-17 17:34:51 +08:00
parent e080d3f858
commit 4acba4ce8e
6 changed files with 65 additions and 13 deletions

View File

@@ -30,8 +30,8 @@ public class BuildStatusScheduleTask {
@Value(value = "${octopus.status.healthy.start-delay}")
int healthyCheckStartDelaySeconds;
@Value(value = "${octopus.status.metric.cron}")
int metricReportCronExpress;
// @Value(value = "${octopus.status.metric.cron}")
// int metricReportCronExpress;
@Value(value = "${octopus.status.metric.pinch}")
int metricReportTimePinch;

View File

@@ -4,6 +4,7 @@ package io.wdd.rpc.scheduler.service.script;
import io.wdd.rpc.execute.service.CoreExecutionService;
import io.wdd.rpc.scheduler.beans.ScriptSchedulerDTO;
import lombok.extern.log4j.Log4j;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@@ -13,7 +14,7 @@ import java.util.List;
* 1.
*/
@Service
@Log4j
@Slf4j
public class AgentApplyScheduledScript {
@Resource

View File

@@ -8,6 +8,8 @@ import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import static io.wdd.rpc.scheduler.service.status.MonitorAllAgentStatus.ALL_AGENT_TOPIC_NAME_SET;
@SpringBootTest
class ServerApplicationTests {
@@ -20,8 +22,8 @@ class ServerApplicationTests {
ArrayList<String> command1 = new ArrayList<>(
List.of(
"echo",
"yes"
"echo",
"yes"
)
);
@@ -35,7 +37,7 @@ class ServerApplicationTests {
ArrayList<String> command3 = new ArrayList<>(
List.of(
"echo",
"no"
"\"no\""
)
);
@@ -55,6 +57,8 @@ class ServerApplicationTests {
completeScript.add(command4);
ALL_AGENT_TOPIC_NAME_SET.add("Chengdu-amd64-98-98066f");
ArrayList<String> targetMachineList = new ArrayList<>(
List.of(
"Chengdu-amd64-98-98066f"