ashb commented on code in PR #25531:
URL: https://github.com/apache/airflow/pull/25531#discussion_r937619814
##########
airflow/models/dagrun.py:
##########
@@ -1183,6 +1183,14 @@ def _find_missing_task_indexes(
existing_indexes[task].append(ti.map_index)
task.run_time_mapped_ti_count.cache_clear() # type:
ignore[attr-defined]
new_length = task.run_time_mapped_ti_count(self.run_id,
session=session) or 0
+
+ if ti.map_index >= new_length and new_length > 0:
Review Comment:
Why do we need the `new_length > 0` check here?
--
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]