reele opened a new issue, #11725: URL: https://github.com/apache/dolphinscheduler/issues/11725
### 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 https://github.com/apache/dolphinscheduler/blob/2746f6851d90cbdda04b6dc099847454ede09550/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml#L180 https://github.com/apache/dolphinscheduler/blob/2746f6851d90cbdda04b6dc099847454ede09550/dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml#L196 Now v2.0.6 and v2.0.7 dependent task use `start_time` to find the target task above, when the task is blocked by preview tasks and started in after days, the dependent task will never succeed. The same problem also occurs in `complement` tasks. PR:#11677 ### What you expected to happen task_instance's date check in dependent task should use the same rule as process_instance. ### How to reproduce blocked a task by preview tasks and started in after days, the dependent task will never succeed. or run complement with future date. ### Anything else _No response_ ### Version 2.0.6 ### 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]
