amaoisnb commented on code in PR #14569:
URL:
https://github.com/apache/dolphinscheduler/pull/14569#discussion_r1337937478
##########
dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java:
##########
@@ -825,6 +825,27 @@ private void initTaskQueue() throws
StateEventHandleException, CronParseExceptio
List<TaskInstance> validTaskInstanceList =
taskInstanceDao.queryValidTaskListByWorkflowInstanceId(workflowInstance.getId(),
workflowInstance.getTestFlag());
+ // the task instance needs fault tolerance
+ if(workflowInstance.getRecovery() == Flag.YES){
+ //determine whether the task is running
+ for (int i = 0; i < validTaskInstanceList.size(); i++) {
+ TaskInstance task = validTaskInstanceList.get(i);
+ boolean isRunningTaskFaultTolerance = false;
+ try {
+ isRunningTaskFaultTolerance =
determineWhetherTaskIsRunning(task);
Review Comment:
I don't quite understand how this works
--
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]