[agent][executor]- bug - 3

This commit is contained in:
zeaslity
2023-02-25 22:04:44 +08:00
parent 018d782713
commit ed2ac8b9f5

View File

@@ -182,6 +182,9 @@ public class CommandExecutor {
throw new RuntimeException(e); throw new RuntimeException(e);
} finally { } finally {
// 对线程进行debug
commandExecLogCache.debugProcessStreams(process);
// 任务提前执行结束,或者超过了最长等待时间 // 任务提前执行结束,或者超过了最长等待时间
// 判断命令是否正确处理完成 // 判断命令是否正确处理完成
if (!commandExecComplete) { if (!commandExecComplete) {
@@ -206,8 +209,6 @@ public class CommandExecutor {
.get() .get()
); );
// 对线程进行debug
commandExecLogCache.debugProcessStreams(process);
process.destroy(); process.destroy();
} }