|
@@ -4,6 +4,7 @@ package com.css.simulation.resource.scheduler.adapter.controller;
|
|
|
import api.common.pojo.param.project.MultiSimulationProjectKafkaParam;
|
|
|
import com.css.simulation.resource.scheduler.app.service.ProjectApplicationService;
|
|
|
import com.css.simulation.resource.scheduler.app.service.TaskApplicationService;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -12,6 +13,7 @@ import javax.annotation.Resource;
|
|
|
@RefreshScope
|
|
|
@RestController
|
|
|
@RequestMapping("/task")
|
|
|
+@Slf4j
|
|
|
public class TaskController {
|
|
|
|
|
|
@Resource
|
|
@@ -25,6 +27,7 @@ public class TaskController {
|
|
|
*/
|
|
|
@GetMapping("/confirm")
|
|
|
public Boolean confirm(@RequestParam("taskId") String taskId) {
|
|
|
+ log.info("获取标准化测试任务{}的是否可以运行", taskId);
|
|
|
return taskApplicationService.confirm(taskId);
|
|
|
}
|
|
|
|
|
@@ -64,6 +67,7 @@ public class TaskController {
|
|
|
|
|
|
@GetMapping("/multiConfirm")
|
|
|
public Boolean multiConfirm(@RequestParam("taskId") String taskId) {
|
|
|
+ log.info("获取多模式任务{}的是否可以运行", taskId);
|
|
|
return taskApplicationService.multiConfirm(taskId);
|
|
|
}
|
|
|
|