uranusjr commented on code in PR #67537:
URL: https://github.com/apache/airflow/pull/67537#discussion_r3393541116
##########
airflow-core/src/airflow/serialization/definitions/dag.py:
##########
@@ -467,6 +485,15 @@ def iter_dagrun_infos_between(
earliest = coerce_datetime(earliest)
latest = coerce_datetime(latest)
+ if self.timetable.partitioned:
+ earliest_partition_date =
self.timetable.resolve_day_bound(earliest.date())
+ latest_partition_date =
self.timetable.resolve_day_bound(latest.date() + timedelta(days=1))
+ yield from self.timetable.iter_partition_dagrun_infos(
+ earliest_partition_date=earliest_partition_date,
+ latest_partition_date=latest_partition_date,
+ )
+ return
Review Comment:
Would it be possible to handle this entirely in the timetable class?
Everything in this block uses `self.timetable`, not anything else on the dag.
--
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]