[agent][executor]- bug - 10

This commit is contained in:
zeaslity
2023-02-26 14:49:46 +08:00
parent 1ad045c927
commit 868ff8e2b7
2 changed files with 6 additions and 5 deletions

View File

@@ -202,11 +202,12 @@ public class CommandExecutor {
"开始销毁命令 [ {} ] 执行进程!",
process
.info()
.commandLine()
.get()
);
}
// 打印一下 debug
commandExecLogCache.PrintCommandCachedLog(streamKey);
// 关停任务执行的缓存日志收集 BufferedReader 否则无法终止
commandExecLogCache.StopExecLogBufferedReader(
streamKey,

View File

@@ -168,8 +168,8 @@ public class CommandExecLogCache {
inputStreamReader
);
if (ObjectUtils.isNotEmpty(bufferedReader)) {
try {
try {
// 关闭command的输出流
process
@@ -183,7 +183,7 @@ public class CommandExecLogCache {
} catch (IOException e) {
throw new RuntimeException(e);
}
}
}