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 2022/01/06 15:43:46 UTC

[GitHub] [dolphinscheduler] caishunfeng commented on issue #7788: [Bug] [MasterServer] Submit duplicate tasks

caishunfeng commented on issue #7788:
URL: https://github.com/apache/dolphinscheduler/issues/7788#issuecomment-1006691975


   ![image](https://user-images.githubusercontent.com/11962619/148408795-af6bbe70-01d3-478c-8a85-a83ed5091263.png)
   ![image](https://user-images.githubusercontent.com/11962619/148408951-9cb93aba-d4c1-41b1-9f43-978c981f64c0.png)
   ![454387769cb60b28eb72a754c53d6aa](https://user-images.githubusercontent.com/11962619/148407707-67564c2a-8920-4f28-af43-e97dfde6414b.png)
   ![698ec6741cfcebde7574d277fce2602](https://user-images.githubusercontent.com/11962619/148407751-8c127c2d-6bf0-4be7-87c3-d6b9c6ffd508.png)
   
   When task A fail and run `WorkflowExecuteThread.taskFinished`, it will add retry task into standby queue, which will submit by `WorkflowExecuteThread.submitPostNode` and `StateWheelExecuteThread.checkTask4Retry`;  When I add sleep 30s in `submitTaskInstanceToDB` like Figure 4, it will increase the probability of repeated retries. In this way, retry task A in standby list will be submit by `WorkflowExecuteThread.submitPostNode` because run task c, and then, `StateWheelExecuteThread.checkTask4Retry` add it into standby list and submit again.


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