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


##########
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:
   Got it. My thinking was that the length won’t change for task instances of a 
mapped task. I’ve thought of updating but it seems no need. WDYT?



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