caishunfeng commented on a change in pull request #8387:
URL: https://github.com/apache/dolphinscheduler/pull/8387#discussion_r806422408
##########
File path:
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java
##########
@@ -1437,14 +1444,10 @@ private ExecutionStatus processReadyPause() {
private ExecutionStatus getProcessInstanceState(ProcessInstance instance) {
ExecutionStatus state = instance.getState();
- if (activeTaskProcessorMaps.size() > 0 || hasRetryTaskInStandBy()) {
+ if ((activeTaskProcessorMaps.size() > 0 || hasRetryTaskInStandBy()) &&
state != ExecutionStatus.READY_STOP) {
Review comment:
Is it better to put the process instance state check before?
##########
File path:
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteThread.java
##########
@@ -1615,6 +1645,9 @@ private void killAllTasks() {
}
TaskInstance taskInstance =
processService.findTaskInstanceById(taskInstanceId);
if (taskInstance == null ||
taskInstance.getState().typeIsFinished()) {
+ if (readyToSubmitTaskQueue.size() > 0) {
Review comment:
Why to clear submit task queue when some taskInstance is null or finish?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]