njnu-seafish opened a new issue, #17938:
URL: https://github.com/apache/dolphinscheduler/issues/17938

   ### 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,  when the referenced dependent task does not exist,  ConditionLogicTask 
instance will be failed.
   
   > private DependResult getDependResultForItem(ConditionDependentItem item, 
Map<Long, TaskInstance> taskInstanceMap) {
           TaskInstance taskInstance = 
taskInstanceMap.get(item.getDepTaskCode());
           if (taskInstance == null) {
               log.info("The depend item: {} has not completed yet", 
DependResult.FAILED);
               log.info("The dependent result will be {}", DependResult.FAILED);
               return DependResult.FAILED;
           }
   
   ### What you expected to happen
   
   When the referenced dependent task does not exist,  system should throw an 
exception to notice user
   
   ### How to reproduce
   
   Configure a non-existent task code in the ConditionLogicTask, this task 
instance will fail
   
   ### 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