Lee-W commented on code in PR #58229:
URL: https://github.com/apache/airflow/pull/58229#discussion_r2564391742
##########
airflow-core/src/airflow/models/dag.py:
##########
@@ -131,9 +131,17 @@ def get_run_data_interval(timetable: Timetable, run:
DagRun) -> DataInterval:
:meta private:
"""
- data_interval = _get_model_data_interval(run, "data_interval_start",
"data_interval_end")
- if data_interval is not None:
+ if (
+ data_interval := _get_model_data_interval(run, "data_interval_start",
"data_interval_end")
+ ) is not None:
return data_interval
+
+ if run.logical_date is None:
+ raise ValueError("Try to infer data_interval without logical_date")
Review Comment:
according to the timeable, we should use run_after instead of logical_date.
just updated it
--
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]