[server][ executor]- 完成底层的代码

This commit is contained in:
zeaslity
2023-02-28 21:30:00 +08:00
parent 371fa71b50
commit c183b3c474
6 changed files with 114 additions and 14 deletions

View File

@@ -117,14 +117,20 @@ public class CommandExecLogCache {
);
String execTimeString = String.format(
"execution time is => [ %s ]",
"execution date time is => [ %s ]",
TimeUtils.currentTimeString()
);
String execMachineString = String.format(
"execution machine is => [ %s ]",
streamKey.split("-Execution")[0]
);
// add the command
commandCachedLog.add(execCommandString);
commandCachedLog.add(execTimeString);
commandCachedLog.add(execMachineString);
commandCachedLog.add("--------------- command result are as below --------------------");
commandCachedLog.add("");
@@ -248,7 +254,7 @@ public class CommandExecLogCache {
addCommandExecTailInfo(
commandExecWaitTimeout,
streamKey,
process.exitValue()
233
);
}