Skip to content

Run Task failure callbacks on DAG Processor when task is externally killed (#53058) - #53143

Merged
kaxil merged 1 commit into
apache:v3-0-testfrom
astronomer:backport-task-callbacks
Jul 10, 2025
Merged

kaxil merged 1 commit into
apache:v3-0-testfrom
astronomer:backport-task-callbacks

Conversation

@kaxil

@kaxil kaxil commented Jul 10, 2025

Copy link
Copy Markdown
Member

[Backport of #53058]

Until #44354 is implemented, tasks killed externally or when supervisor process dies unexpectedly, users have no way of knowing this happened.

This has been a blocker for Airflow 3.0 adoption for some:

#44354 is more involved and we might not get to it for Airflow 3.1 -- so this is a good fix until then similar to how we run Dag Run callback.

(cherry-picked from a5211f2)


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

…illed (apache#53058)

Until apache#44354 is implemented, tasks killed externally or when supervisor process dies unexpectedly, users have no way of knowing this happened.

This has been a blocker for Airflow 3.0 adoption for some:

- apache#44354
- https://apache-airflow.slack.com/archives/C07813CNKA8/p1751057525231389

apache#44354 is more involved and we might not get to it for Airflow 3.1 -- so this is a good fix until then similar to how we run Dag Run callback.

(cherry-picked from a5211f2)
@kaxil
kaxil merged commit 293a383 into apache:v3-0-test Jul 10, 2025
@kaxil
kaxil deleted the backport-task-callbacks branch July 10, 2025 16:39
kaxil added a commit that referenced this pull request Jul 11, 2025
…illed (#53058) (#53143)

Until #44354 is implemented, tasks killed externally or when supervisor process dies unexpectedly, users have no way of knowing this happened.

This has been a blocker for Airflow 3.0 adoption for some:

- #44354
- https://apache-airflow.slack.com/archives/C07813CNKA8/p1751057525231389

#44354 is more involved and we might not get to it for Airflow 3.1 -- so this is a good fix until then similar to how we run Dag Run callback.

(cherry-picked from a5211f2)
kaxil added a commit that referenced this pull request Jul 11, 2025
…illed (#53058) (#53143)

Until #44354 is implemented, tasks killed externally or when supervisor process dies unexpectedly, users have no way of knowing this happened.

This has been a blocker for Airflow 3.0 adoption for some:

- #44354
- https://apache-airflow.slack.com/archives/C07813CNKA8/p1751057525231389

#44354 is more involved and we might not get to it for Airflow 3.1 -- so this is a good fix until then similar to how we run Dag Run callback.

(cherry-picked from a5211f2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant