You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/08/18 10:25:52 UTC

[GitHub] [airflow] ephraimbuddy commented on a diff in pull request #25788: Properly check the existence of missing mapped TIs

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


##########
airflow/models/dagrun.py:
##########
@@ -1030,7 +1030,7 @@ def expand_mapped_literals(
         tasks_and_map_idxs = map(expand_mapped_literals, filter(task_filter, dag.task_dict.values()))
 
         tasks = itertools.chain.from_iterable(itertools.starmap(task_creator, tasks_and_map_idxs))
-        if missing_indexes:
+        if missing_indexes and any(len(v) for _, v in missing_indexes.items()):

Review Comment:
   It's not the root cause of the issue but it calls verify_integrity unnecessarily



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org