[ server ] [ scheduler ]- script scheduler fix bugs - 1
This commit is contained in:
@@ -14,6 +14,8 @@ import org.springframework.web.bind.annotation.*;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static io.wdd.rpc.scheduler.service.status.MonitorAllAgentStatus.ALL_AGENT_TOPIC_NAME_SET;
|
||||
|
||||
@RestController
|
||||
@Api(value = "定时任务控制中心的Controller")
|
||||
@RequestMapping(value = "/octopus/server/scheduler")
|
||||
@@ -35,6 +37,8 @@ public class SchedulerController {
|
||||
@ApiParam(name = "scheduleScript") @RequestBody() ScriptSchedulerVO scriptSchedulerVO
|
||||
) {
|
||||
|
||||
ALL_AGENT_TOPIC_NAME_SET.add("Chengdu-amd64-98-98066f");
|
||||
|
||||
List<String> resultList = octopusQuartzService.createScriptScheduledMission(scriptSchedulerVO);
|
||||
|
||||
return R.ok(resultList);
|
||||
@@ -50,6 +54,7 @@ public class SchedulerController {
|
||||
@GetMapping(value = "/queryAllMission")
|
||||
public R<List<Map<String, Object>>> queryAllQuartzMission() {
|
||||
|
||||
|
||||
return R.ok(octopusQuartzService.queryAllMission());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user