uranusjr commented on a change in pull request #19130:
URL: https://github.com/apache/airflow/pull/19130#discussion_r733600286
##########
File path: airflow/timetables/interval.py
##########
@@ -83,7 +83,12 @@ def next_dagrun_info(
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
+ if restriction.catchup:
+ start = last_automated_data_interval.end
+ else:
+ # Catchup is False, we want the next run or latest which ever
is greatest
+ start = max(last_automated_data_interval.end, earliest)
Review comment:
Side note, I'd expect Mypy to catch this `None` issue; maybe you could
try running `./breeze static-check` locally. You could also consider setting up
[pre-commit](https://github.com/apache/airflow/blob/main/STATIC_CODE_CHECKS.rst#pre-commit-hooks)
for automatic checks.
--
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]