ashb commented on a change in pull request #18088:
URL: https://github.com/apache/airflow/pull/18088#discussion_r704497220
##########
File path: airflow/models/dag.py
##########
@@ -559,9 +601,75 @@ def previous_schedule(self, dttm):
return None
return self.timetable._get_prev(pendulum.instance(dttm))
+ def get_next_data_interval(self, dag_model: "DagModel") -> DataInterval:
+ """Get the data interval of the next scheduled run.
+
+ For compatibility, this method infers the data interval from the DAG's
+ schedule if the run does not have an explicit one set, which is
possible for
+ runs created prior to AIP-39.
+
+ This function is private to Airflow core and should not be depended as
a
+ part of the Python API.
+
+ :meta private:
Review comment:
👍🏻
--
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]