ephraimbuddy commented on code in PR #60011:
URL: https://github.com/apache/airflow/pull/60011#discussion_r2660617934


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -1716,6 +1718,25 @@ def _mark_backfills_complete(self, session: Session = 
NEW_SESSION) -> None:
         for b in backfills:
             b.completed_at = now
 
+    def _get_latest_automated_dagrun_data_interval(
+        self, dag_id: str, dag: SerializedDAG, session: Session
+    ) -> DataInterval | None:
+        """
+        Query and return the data interval of the latest automated DagRun for 
a given DAG.
+
+        This ensures we always use the actual latest run when calculating next 
dagrun fields,

Review Comment:
   This is a different issue from what you are fixing or am I missing anything?



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