This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new ab527a5 [Improvement#5741][Worker] Improve task process status log
(#5776)
ab527a5 is described below
commit ab527a5e5abd04243305a50f184d8009b9edf21a
Author: Tanvi Moharir <[email protected]>
AuthorDate: Thu Jul 8 21:58:00 2021 +0530
[Improvement#5741][Worker] Improve task process status log (#5776)
---
.../server/worker/task/AbstractCommandExecutor.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java
b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java
index 3ea7bd2..40efdd3 100644
---
a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java
+++
b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/AbstractCommandExecutor.java
@@ -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;
}