ashb commented on code in PR #25788:
URL: https://github.com/apache/airflow/pull/25788#discussion_r948921825
##########
airflow/models/dagrun.py:
##########
@@ -1117,7 +1119,9 @@ def _revise_mapped_task_indexes(
new_indexes[task] = range(new_length)
missing_indexes: Dict[MappedOperator, Sequence[int]] =
defaultdict(list)
for k, v in existing_indexes.items():
- missing_indexes.update({k:
list(set(new_indexes[k]).difference(v))})
+ indexes = list(set(new_indexes[k]).difference(v))
+ if indexes:
+ missing_indexes.update({k: indexes})
Review Comment:
```suggestion
indexes = set(new_indexes[k]).difference(v)
if indexes:
missing_indexes[k] = list(indexes)
```
I think
--
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]