Skip to content

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

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

Fix deadline serialization, repr, and prune edge cases#70421
seanghaeli wants to merge 3 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
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.

1 participant