[ Agent ] [ Executor ] - 修改底层执行返回逻辑
This commit is contained in:
@@ -27,7 +27,7 @@ public class ExecutionServiceImpl implements ExecutionService {
|
||||
|
||||
private static final String MANUAL_COMMAND_TYPE = "manual-command";
|
||||
|
||||
private static final int COMMAND_MAX_WAIT_TIMEOUT = 15;
|
||||
private static final int COMMAND_MAX_WAIT_TIMEOUT = 60;
|
||||
|
||||
@Resource
|
||||
OMessageToAgentSender oMessageToAgentSender;
|
||||
@@ -123,24 +123,6 @@ public class ExecutionServiceImpl implements ExecutionService {
|
||||
}
|
||||
|
||||
|
||||
// 解析结果
|
||||
if (StringUtils.isNotBlank(octopusMessage
|
||||
.getResultCode()) && octopusMessage
|
||||
.getResultCode()
|
||||
.startsWith("200")) {
|
||||
String firstLine = String.format(
|
||||
"%s 执行结果为 true",
|
||||
executionContent
|
||||
);
|
||||
if (commandResultLog == null) {
|
||||
commandResultLog = new ArrayList<>();
|
||||
}
|
||||
commandResultLog.add(
|
||||
0,
|
||||
firstLine
|
||||
);
|
||||
}
|
||||
|
||||
// debug
|
||||
log.debug(
|
||||
"执行命令 {} {} 在规定时间内结束, 结果为 {} 返回内容为 {}",
|
||||
|
||||
Reference in New Issue
Block a user