mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 04:08:31 +08:00
[Improvement#5741][Worker] Improve task process status log (#5776)
This commit is contained in:
parent
b114d330ac
commit
ab527a5e5a
@ -202,9 +202,6 @@ public abstract class AbstractCommandExecutor {
|
||||
// waiting for the run to finish
|
||||
boolean status = process.waitFor(remainTime, TimeUnit.SECONDS);
|
||||
|
||||
logger.info("process has exited, execute path:{}, processId:{} ,exitStatusCode:{} ,processWaitForStatus:{} ,processExitValue:{}",
|
||||
taskExecutionContext.getExecutePath(), processId, result.getExitStatusCode(), status, process.exitValue());
|
||||
|
||||
// if SHELL task exit
|
||||
if (status) {
|
||||
// set appIds
|
||||
@ -224,6 +221,9 @@ public abstract class AbstractCommandExecutor {
|
||||
ProcessUtils.kill(taskExecutionContext);
|
||||
result.setExitStatusCode(EXIT_CODE_FAILURE);
|
||||
}
|
||||
|
||||
logger.info("process has exited, execute path:{}, processId:{} ,exitStatusCode:{} ,processWaitForStatus:{} ,processExitValue:{}",
|
||||
taskExecutionContext.getExecutePath(), processId, result.getExitStatusCode(), status, process.exitValue());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user