karenbraganz commented on code in PR #53435:
URL: https://github.com/apache/airflow/pull/53435#discussion_r2220063617
##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -2016,7 +2017,7 @@ def _maybe_requeue_stuck_ti(self, *, ti, session):
extra=f"Task was requeued more than
{self._num_stuck_queued_retries} times and will be failed.",
)
)
- ti.set_state(TaskInstanceState.FAILED, session=session)
+ executor.fail(ti.key)
Review Comment:
@amoghrajesh according to my tests, the TI was failed after a state mismatch
was detected between TI state and executor state.
<img width="1569" height="547" alt="image"
src="https://github.com/user-attachments/assets/d4a30ed9-38f4-40f4-9ab2-e53a945b9a95"
/>
This screenshot is from a test I ran in Airflow 2.11.0, but I observed the
same in Airflow 3.
--
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]