robinedwards commented on a change in pull request #19130:
URL: https://github.com/apache/airflow/pull/19130#discussion_r733984728
##########
File path: airflow/timetables/interval.py
##########
@@ -81,9 +81,15 @@ def next_dagrun_info(
return None
start = self._align(earliest)
else:
- # There's a previous run. Create a data interval starting from when
- # the end of the previous interval.
- start = last_automated_data_interval.end
+ # There's a previous run.
+ if earliest is not None:
+ # Catchup is False or DAG has new start date in the future.
+ # Make sure we get the latest start date
+ start = max(last_automated_data_interval.end, earliest)
+ else:
+ # Create a data interval starting from when the end of the
previous interval.
+ start = last_automated_data_interval.end
Review comment:
Of course will look into this tomorrow
--
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]