Browse Source

Set task end time when subprocess notify by remote (#14856)

3.1.9-release
旺阳 1 year ago committed by GitHub
parent
commit
6e99c6af18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/event/TaskStateEventHandler.java

1
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/event/TaskStateEventHandler.java

@ -90,6 +90,7 @@ public class TaskStateEventHandler implements StateEventHandler {
if (iTaskProcessor.taskInstance().getState().isFinished()) {
if (iTaskProcessor.taskInstance().getState() != task.getState()) {
task.setState(iTaskProcessor.taskInstance().getState());
task.setEndTime(iTaskProcessor.taskInstance().getEndTime());
}
workflowExecuteRunnable.taskFinished(task);
}

Loading…
Cancel
Save