ZhongJinHacker opened a new issue, #15740:
URL: https://github.com/apache/dolphinscheduler/issues/15740

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   In WorkflowExecuteRunnable's executeTask method block, when 
`processService.submitTask` return false, it will return true. and this return 
value will cause   the boolean variable named taskFailedSubmit cannot go into 
the correct state.  Due to  `taskFailedSubmit` is WorkflowExecuteRunnable's 
member variable, it will cause the method named hasFailedTask cannot return the 
correct results
   
   
![image](https://github.com/apache/dolphinscheduler/assets/15382560/5719910a-4673-4c34-b12f-aead31cfbc3d)
   
   
![image](https://github.com/apache/dolphinscheduler/assets/15382560/6bbf8aa3-74c8-4014-b055-2763db4b048d)
   
   
   
   ### What you expected to happen
   
   #### let me fix it
   
   ### How to reproduce
   
   when the db can not work, and at the same time ,the program call the 
`processService.submitTask` in the executeTask method block, it will reproduce 
the situation. Or make a unit test. it also can reproduce the situation
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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

Reply via email to