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


##########
airflow/models/dagrun.py:
##########
@@ -863,7 +859,8 @@ def verify_integrity(self, session: Session = NEW_SESSION):
                 else:
                     self.log.info("Restoring mapped task '%s'", ti)
                     Stats.incr(f"task_restored_to_dag.{dag.dag_id}", 1, 1)
-                    ti.state = State.NONE
+                    existing_indexes[task].append(ti.map_index)
+                    expected_indexes[task] = list(range(num_mapped_tis))

Review Comment:
   I don’t think so. One is `expected_indexes` while the other is 
`existing_indexes`. Maybe I’m missing something?



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