Lee-W commented on code in PR #75847:
URL: https://github.com/apache/airflow/pull/75847#discussion_r4410795647


##########
airflow-core/src/airflow/timetables/_cron.py:
##########
@@ -162,7 +195,16 @@ def _get_next(self, current: DateTime) -> DateTime:
             assert isinstance(scheduled, datetime.datetime)
         if not _covers_every_hour(cron):
             return convert_to_utc(make_aware(scheduled, self._timezone))
+
         delta = scheduled - naive
+        if delta >= _FOLD_DELTA_LIMIT:
+            # Ticks up to one limit before ``naive`` may have a later fold 
occurrence after ``current``.

Review Comment:
   Kept one copy of each, in `_get_next`. The duplicated gate itself moved into 
`_localize_if_unambiguous` as well.
   



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