ruanwenjun commented on code in PR #13948:
URL:
https://github.com/apache/dolphinscheduler/pull/13948#discussion_r1174403074
##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java:
##########
@@ -377,12 +385,14 @@ public ProcessInstance getProcessInstance() {
}
public boolean checkForceStartAndWakeUp(StateEvent stateEvent) {
- TaskGroupQueue taskGroupQueue =
this.processService.loadTaskGroupQueue(stateEvent.getTaskInstanceId());
+ TaskGroupQueue taskGroupQueue =
processService.loadTaskGroupQueue(stateEvent.getTaskInstanceId());
if (taskGroupQueue.getForceStart() == Flag.YES.getCode()) {
log.info("Begin to force start taskGroupQueue: {}",
taskGroupQueue.getId());
- TaskInstance taskInstance =
this.taskInstanceDao.findTaskInstanceById(stateEvent.getTaskInstanceId());
- ITaskProcessor taskProcessor =
activeTaskProcessorMaps.get(taskInstance.getTaskCode());
- taskProcessor.action(TaskAction.DISPATCH);
+ TaskInstance taskInstance =
taskInstanceDao.findTaskInstanceById(stateEvent.getTaskInstanceId());
+
+ taskExecuteRunnableMap.get(taskInstance.getTaskCode()).dispatch();
+ // ITaskProcessor taskProcessor =
activeTaskProcessorMaps.get(taskInstance.getTaskCode());
+ // taskProcessor.action(TaskAction.DISPATCH);
Review Comment:
Done
--
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]