uranusjr commented on code in PR #64162:
URL: https://github.com/apache/airflow/pull/64162#discussion_r3457504772


##########
airflow-core/src/airflow/timetables/trigger.py:
##########
@@ -87,12 +87,15 @@ def next_dagrun_info(
             else:
                 next_start_time = self._align_to_next(restriction.earliest)
         else:
-            start_time_candidates = 
[self._align_to_prev(coerce_datetime(utcnow()))]
             if last_automated_data_interval is not None:
-                
start_time_candidates.append(self._get_next(last_automated_data_interval.end))
-            elif restriction.earliest is None:
-                # Run immediately has no effect if there is restriction on 
earliest
-                start_time_candidates.append(self._calc_first_run())
+                # _calc_first_run respects run_immediately to decide between 
the
+                # most recent past cron point and the next future one.

Review Comment:
   What is this comment trying to explain? `run_immediately` is not mentioned 
anywhere around this line. Why does it need to be mentioned here?



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