xialinlin101 commented on issue #7501:
URL:
https://github.com/apache/dolphinscheduler/issues/7501#issuecomment-1084357748
I found that this error occurs after stopping the task and deleting the
process instance,The corresponding task instance is also deleted.
The error occurred in:
org.apache.dolphinscheduler.server.master.runner.WorkflowExecuteThread
private boolean taskStateChangeHandler(StateEvent stateEvent) {
TaskInstance task =
processService.findTaskInstanceById(stateEvent.getTaskInstanceId());
**if (task.getState().typeIsFinished())** {
taskFinished(task);
} else if
(activeTaskProcessorMaps.containsKey(stateEvent.getTaskInstanceId())) {
ITaskProcessor iTaskProcessor =
activeTaskProcessorMaps.get(stateEvent.getTaskInstanceId());
iTaskProcessor.action(TaskAction.RUN);
if (iTaskProcessor.taskState().typeIsFinished()) {
task =
processService.findTaskInstanceById(stateEvent.getTaskInstanceId());
taskFinished(task);
}
} else {
logger.error("state handler error: {}", stateEvent.toString());
}
return true;
}
--
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]