Hou-Shuaishuai commented on issue #9641:
URL: 
https://github.com/apache/dolphinscheduler/issues/9641#issuecomment-1109450412

   1. Update update_time in t_ds_schedules both online and offline
   2. When judging the dependency status, if it is found to be self-dependent, 
it will judge whether the scheduling execution time is the first execution time 
after the scheduling update, and return the dependency successfully completed 
state if it is equal.
   
        Logic 
code:org.apache.dolphinscheduler.server.utils.DependentExecute.getDependentResultForItem
 Method
        
            //isSelfDep: Determine depending on projectCode, definitionCode, 
and depTaskCode
        //getScheduleFirstFireTime: according to t_ds_schedules table 
update_time crontab and it is concluded that the execution time for the first 
time
   
        private DependResult getDependentResultForItem(DependentItem 
dependentItem, Date currentTime) {
        if (isSelfDep() && getScheduleFirstFireTime() == 
processInstance.getSchedule_time()){
                return DependResult.SUCCESS;
        }
           List<DateInterval> dateIntervals = 
DependentUtils.getDateIntervalList(currentTime, dependentItem.getDateValue());
           return calculateResultForTasks(dependentItem, dateIntervals);
       }


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