ashb commented on code in PR #25788:
URL: https://github.com/apache/airflow/pull/25788#discussion_r948892480


##########
airflow/models/dagrun.py:
##########
@@ -656,7 +656,7 @@ def _filter_tis_and_exclude_removed(dag: "DAG", tis: 
List[TI]) -> Iterable[TI]:
 
         tis = list(_filter_tis_and_exclude_removed(self.get_dag(), tis))
         missing_indexes = self._revise_mapped_task_indexes(tis, 
session=session)
-        if missing_indexes:
+        if missing_indexes and any(len(v) for v in missing_indexes.values()):

Review Comment:
   Rather than doing this check here it feels better if we do it inside 
`_revise_mapped_task_indexes` in some way.



-- 
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]

Reply via email to