Skip to content

Fix deadline serialization, repr, and prune edge cases - #70421

Open
seanghaeli wants to merge 5 commits into
apache:mainfrom
aws-mwaa:feature/deadline-robustness-followup
Open

Fix deadline serialization, repr, and prune edge cases#70421
seanghaeli wants to merge 5 commits into
apache:mainfrom
aws-mwaa:feature/deadline-robustness-followup

Conversation

@seanghaeli

@seanghaeli seanghaeli commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Split out of #68919 per review. Edge-case fixes in the deadline model and serialization paths:

  • Deserialization routes by __class_path ahead of reference_type (custom references can share a builtin's class name), and a reference with no importable __class_path raises a clear error instead of a KeyError.
  • __repr__ on Deadline and DeadlineAlert never raises (guards the dagrun relationship post-cascade-delete and the dict-shaped interval).
  • prune_deadlines excludes missed deadlines so a missed deadline's queued callback is not cascade-deleted.

Split out of apache#68919 per review: decoder __class_path routing, clear
error for missing __class_path, repr guards for severed dagrun and
dict-shaped interval, and prune guard for missed deadlines.
@seanghaeli seanghaeli changed the title Harden deadline serialization, repr, and prune paths Fix deadline serialization, repr, and prune edge cases Jul 24, 2026
@seanghaeli
seanghaeli marked this pull request as ready for review July 25, 2026 00:14
@potiuk potiuk added the ready for maintainer review Set after triaging when all criteria pass. label Jul 28, 2026
@seanghaeli
seanghaeli force-pushed the feature/deadline-robustness-followup branch from 09a9f50 to 385914d Compare July 28, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:DAG-processing area:deadline-alerts AIP-86 (former AIP-57) ready for maintainer review Set after triaging when all criteria pass.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants