[agent][executor]- bug

This commit is contained in:
zeaslity
2023-02-25 17:11:43 +08:00
parent ed5a242838
commit 1f48d1e837
2 changed files with 9 additions and 5 deletions

View File

@@ -116,11 +116,7 @@ public class CommandExecutor {
commandExecWaitTimeout = durationTaskMaxWaitSeconds;
}
// 缓存 命令处理日志
commandExecLogCache.cacheLog(
streamKey,
process
);
// 2023年2月23日 同时执行log日志部分移动至此部分处理
AgentCommonThreadPool.pool.submit(
@@ -185,6 +181,13 @@ public class CommandExecutor {
throw new RuntimeException(e);
} finally {
// 缓存 命令处理日志
commandExecLogCache.cacheLog(
streamKey,
process
);
// 任务提前执行结束,或者超过了最长等待时间
// 判断命令是否正确处理完成
if (!commandExecComplete) {

View File

@@ -58,6 +58,7 @@ public class CommandExecLogCache {
);
// add the command
commandCachedLog.add("");
commandCachedLog.add(execCommandString);
commandCachedLog.add(execTimeString);
commandCachedLog.add(execResultString);