kaxil commented on code in PR #48945:
URL: https://github.com/apache/airflow/pull/48945#discussion_r2033326609


##########
providers/standard/src/airflow/providers/standard/operators/latest_only.py:
##########
@@ -74,6 +80,15 @@ def choose_branch(self, context: Context) -> str | 
Iterable[str]:
             now,
         )
 
+        if left_window == right_window:
+            self.log.info(
+                "Zero-length interval [%s, %s) from timetable (%s); treating 
current run as latest.",
+                left_window,
+                right_window,
+                self.dag.timetable.__class__,
+            )
+            return 
list(context["task"].get_direct_relative_ids(upstream=False))

Review Comment:
   This is because we changed the default to `DeltaTriggerTimetable` from 
`DeltaDataIntervalTimetable` for  3.0 in 
https://github.com/apache/airflow/pull/46846
   
   Because of that change `data_interval_start` is same as `data_interval_end` 
when `timedelta` is passed as DAG's `schedule`



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