Skip to content

[v3-4-test] Do not abort Dag run creation when a deadline alert fails (#68917) - #74975

Merged
vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-f792bd6-v3-4-test
Oct 18, 2026
Merged

vatsrahul1001 merged 1 commit into
v3-4-testfrom
backport-f792bd6-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Do not abort Dag run creation when a deadline alert fails

Deadline alerts are an observability feature layered on top of a Dag run, so
they must never be able to stop one from existing. Decoding a stored alert,
resolving its interval and evaluating its reference all happen inside
create_dagrun, and any of them could raise straight out through Dag run
creation -- so one malformed or unresolvable alert took the whole Dag run down
with it, and on a Dag with several alerts the first failure starved the rest of
their deadlines.

The new deadline_alerts.deadline_creation_failed counter keeps these skips
visible rather than silent.
(cherry picked from commit f792bd6)

Co-authored-by: Sean Ghaeli [email protected]

…#68917)

* Do not abort Dag run creation when a deadline alert fails

Deadline alerts are an observability feature layered on top of a Dag run, so
they must never be able to stop one from existing. Decoding a stored alert,
resolving its interval and evaluating its reference all happen inside
create_dagrun, and any of them could raise straight out through Dag run
creation -- so one malformed or unresolvable alert took the whole Dag run down
with it, and on a Dag with several alerts the first failure starved the rest of
their deadlines.

The new deadline_alerts.deadline_creation_failed counter keeps these skips
visible rather than silent.
(cherry picked from commit f792bd6)

Co-authored-by: Sean Ghaeli <[email protected]>
@boring-cyborg boring-cyborg Bot added the area:deadline-alerts AIP-86 (former AIP-57) label Oct 18, 2026
@vatsrahul1001
vatsrahul1001 marked this pull request as ready for review October 18, 2026 09:02
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.4.0 milestone Oct 18, 2026
@vatsrahul1001
vatsrahul1001 merged commit d3e95a3 into v3-4-test Oct 18, 2026
178 of 189 checks passed
@vatsrahul1001
vatsrahul1001 deleted the backport-f792bd6-v3-4-test branch October 18, 2026 10:17
vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
…#68917) (#74975)

* Do not abort Dag run creation when a deadline alert fails

Deadline alerts are an observability feature layered on top of a Dag run, so
they must never be able to stop one from existing. Decoding a stored alert,
resolving its interval and evaluating its reference all happen inside
create_dagrun, and any of them could raise straight out through Dag run
creation -- so one malformed or unresolvable alert took the whole Dag run down
with it, and on a Dag with several alerts the first failure starved the rest of
their deadlines.

The new deadline_alerts.deadline_creation_failed counter keeps these skips
visible rather than silent.
(cherry picked from commit f792bd6)

Co-authored-by: Sean Ghaeli <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants