Lee-W commented on code in PR #59604:
URL: https://github.com/apache/airflow/pull/59604#discussion_r2671994785


##########
airflow-core/src/airflow/models/dagrun.py:
##########
@@ -1556,7 +1574,14 @@ def _expand_mapped_task_if_needed(ti: TI) -> 
Iterable[TI] | None:
             if TYPE_CHECKING:
                 assert isinstance(schedulable.task, Operator)
             old_state = schedulable.state
-            if not schedulable.are_dependencies_met(session=session, 
dep_context=dep_context):
+            if not schedulable.are_dependencies_met(
+                session=session,
+                dep_context=(
+                    dep_context
+                    if old_state != TaskInstanceState.UP_FOR_RESCHEDULE
+                    else dep_context_with_reschedule

Review Comment:
   I moved this thing into `are_dependencies_met` for better readability. If 
we're to do a new dep class, it would probably be better if we just add 
`ReadyToRescheduleDep` to every task



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