[agent][executor]- 完成底层命令执行架构的更改 - 1

This commit is contained in:
zeaslity
2023-02-26 16:25:57 +08:00
parent e4bb3f4a06
commit 4e44fa4468
2 changed files with 7 additions and 2 deletions

View File

@@ -207,7 +207,7 @@ public class CommandExecutor {
}
// 打印一下 debug
commandExecLogCache.PrintCommandCachedLog(streamKey);
//commandExecLogCache.PrintCommandCachedLog(streamKey);
// 关停任务执行的缓存日志收集 BufferedReader 否则无法终止
commandExecLogCache.StopExecLogBufferedReader(
@@ -216,7 +216,11 @@ public class CommandExecutor {
);
// 异步执行日志的发送工作
//commandExecLogCache.CollectAndSendExecLog(streamKey, needResultReplay, octopusMessage);
commandExecLogCache.CollectAndSendExecLog(
streamKey,
needResultReplay,
octopusMessage
);
// 执行到这里,说明整个任务流程结束(超时结束)
log.debug(

View File

@@ -148,6 +148,7 @@ public class CommandExecLogCache {
streamKey,
bufferedReader
);
// 使用统一进程执行缓存和关停动作
LogCacheDaemonThread.submit(
() -> {