You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/12/04 14:39:39 UTC

[GitHub] [dolphinscheduler] caishunfeng commented on a change in pull request #7140: [Fix-7037][dolphincheduler-server] process instance can not be killed when complement data

caishunfeng commented on a change in pull request #7140:
URL: https://github.com/apache/dolphinscheduler/pull/7140#discussion_r762432788



##########
File path: dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java
##########
@@ -518,7 +518,7 @@ public TaskInstance getTaskInstance(int taskInstanceId) {
     private boolean processStateChangeHandler(StateEvent stateEvent) {
         try {
             logger.info("process:{} state {} change to {}", processInstance.getId(), processInstance.getState(), stateEvent.getExecutionStatus());
-            if (processComplementData()) {
+            if (processInstance.getState() != ExecutionStatus.READY_STOP && processComplementData()) {

Review comment:
       Is it better to move this state condition into `processComplementData()`? 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org