The GitHub Actions job "Tests AMD" on airflow.git/backport-6da77b1-v3-0-test 
has failed.
Run started by GitHub user ashb (triggered by ashb).

Head commit for run:
eb446bb1cbb58b0c3ebfedb8d7e03ef6f18d5320 / Karen Braganza 
<[email protected]>
[v3-0-test] Allow failure callbacks for stuck in queued TIs that fail (#53435)

In issue #51301, it was reported that failure callbacks do not run for task 
instances that get stuck in queued and fail in Airflow 2.10.5. This is 
happening due to the changes introduced in PR #43520 . In this PR, logic was 
introduced to requeue tasks that get stuck in queued (up to two times by 
default) before failing them.

Previously, the executor's fail method was called when the task needed to be 
failed after max requeue attempts. This was replaced by the task instance's 
set_state method in the PR ti.set_state(TaskInstanceState.FAILED, 
session=session). Without the executor's fail method being called, failure 
callbacks will not be executed for such task instances. Therefore, I changed 
the code to call the executor's fail method instead in Airflow 3.
(cherry picked from commit 6da77b1fdfc0b51762b47638489e752384911758)

Co-authored-by: Karen Braganza <[email protected]>

Report URL: https://github.com/apache/airflow/actions/runs/16906258659

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to