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/03 10:57:23 UTC

[GitHub] [dolphinscheduler] chinaboyll commented on issue #6959: [Bug] [endless loop] Workergroup have only one Worker,when this worker is down。run task job is endless loop

chinaboyll commented on issue #6959:
URL: https://github.com/apache/dolphinscheduler/issues/6959#issuecomment-985423105


   I changed the source code : org/apache/dolphinscheduler/server/master/runner/MasterTaskExecThread.java - waitTaskQuit()
   insert into Failure count.
   `Integer num = 0;
      if (num>=50 && taskInstance.getState() == ExecutionStatus.SUBMITTED_SUCCESS && !taskInstance.getState().typeIsFinished()){
                       cancelTaskInstance();
                       logger.error("worker is down,task is kill");
                   }else {
                       num++;
                       logger.info("master submit job error number: "+num);
                   }`
   If I change the code, does it affect other implementations.


-- 
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