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

   ### 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
   
   now DependentExecute use `findLastTaskInstance` to find task-instances in 
workflow-instance:
   
https://github.com/apache/dolphinscheduler/blob/1317e837ff14597c619e517926247dba7231d0d7/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml#L260-L267
   
   when a workflow has been failover, the unfinished old task-instance's state 
will set into `NEED_FAULT_TOLERANCE`(8) and then never use it, but it will 
affect the query result above, some database is null first default, so even if 
the new task-instance is finished, the dependent task will still stuck in old 
task-instance's state.
   
   <img width="781" height="80" alt="Image" 
src="https://github.com/user-attachments/assets/5fa20ab7-bea8-45ed-a33b-8c07a327b4c4";
 />
   
   ### What you expected to happen
   
   ignore failovered task-instance in calculating depend result.
   
   ### How to reproduce
   
   -
   
   ### 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