[agent][executor]- bug - 13

This commit is contained in:
zeaslity
2023-02-26 15:41:19 +08:00
parent 5bb3090449
commit 87b0239d58

View File

@@ -139,6 +139,15 @@ public class CommandExecutor {
// 命令执行完成, countDownLatch计数 // 命令执行完成, countDownLatch计数
countDownLatch.countDown(); countDownLatch.countDown();
// 打印一下 debug
commandExecLogCache.PrintCommandCachedLog(streamKey);
// 关停任务执行的缓存日志收集 BufferedReader 否则无法终止
commandExecLogCache.StopExecLogBufferedReader(
streamKey,
process
);
log.debug( log.debug(
"current shell command {} result is {}", "current shell command {} result is {}",
processBuilder.command(), processBuilder.command(),
@@ -205,15 +214,6 @@ public class CommandExecutor {
); );
} }
// 打印一下 debug
commandExecLogCache.PrintCommandCachedLog(streamKey);
// 关停任务执行的缓存日志收集 BufferedReader 否则无法终止
commandExecLogCache.StopExecLogBufferedReader(
streamKey,
process
);
} }
// 打印一下 debug // 打印一下 debug