[ Execution ] change the excuetion log access way
This commit is contained in:
@@ -4,7 +4,6 @@ import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import io.wdd.common.response.R;
|
||||
import io.wdd.rpc.execute.result.BuildStreamReader;
|
||||
import io.wdd.rpc.execute.service.AsyncExecutionService;
|
||||
import io.wdd.rpc.execute.service.SyncExecutionService;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@@ -18,7 +17,6 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import static io.wdd.rpc.execute.result.RedisStreamReaderConfig.AGENT_STATUS_REDIS_STREAM_LISTENER_CONTAINER;
|
||||
import static io.wdd.rpc.init.AgentStatusCacheService.ALL_AGENT_TOPIC_NAME_LIST;
|
||||
import static io.wdd.rpc.init.AgentStatusCacheService.ALL_HEALTHY_AGENT_TOPIC_NAME_LIST;
|
||||
|
||||
@@ -30,8 +28,6 @@ public class ExecutionController {
|
||||
@Resource
|
||||
SyncExecutionService syncExecutionService;
|
||||
@Resource
|
||||
BuildStreamReader buildStreamReader;
|
||||
@Resource
|
||||
AsyncExecutionService asyncExecutionService;
|
||||
|
||||
@PostMapping("/command/one")
|
||||
@@ -198,11 +194,6 @@ public class ExecutionController {
|
||||
@RequestParam(value = "streamKey") @ApiParam(value = "status的Stream Key") String streamKey
|
||||
) {
|
||||
|
||||
buildStreamReader.registerStreamReader(
|
||||
AGENT_STATUS_REDIS_STREAM_LISTENER_CONTAINER,
|
||||
streamKey
|
||||
);
|
||||
|
||||
return R.ok("请到控制台查看,已经切换至 => " + streamKey);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user