ashb commented on code in PR #59604:
URL: https://github.com/apache/airflow/pull/59604#discussion_r2671775117
##########
airflow-core/src/airflow/ti_deps/deps/ready_to_reschedule.py:
##########
@@ -43,9 +43,18 @@ def _get_dep_statuses(self, ti, session, dep_context):
in the future.
"""
if (
+ # Exclude infrastructure-triggered reschedules.
+ # When a task is rescheduled due to a startup failure (e.g. the
task runner
+ # cannot load the Dag or task), the task instance will be set
+ # in UP_FOR_RESCHEDULE state. In this case, we'll ignore the task's
+ # "reschedule" attribute check, since the reschedule was not
initiated by the
+ # operator itself.
+ ti.state is None
Review Comment:
I don't quite see how this comment ties up with checking if ti.state is None?
--
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]