Migrate deadline references over to task sdk #61267
Draft
+254
−307
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Was generative AI tooling used to co-author this PR?
Cursor IDE with claude sonnet 4.5
This is a follow up to: #61118, where deadline references needed to be better handled.
In this PR, I intend to complete the migration of deadline alert references from
airflow-coretotask-sdk. task SDK now contains lightweight reference definitions for DAG authoring, while core retains database aware evaluation logic.Changes of Note
ReferenceModelsAdded reference classes with serialization only logic:
BaseDeadlineReference- Base class withserialize_reference()/deserialize_reference()FixedDatetimeDeadline,DagRunLogicalDateDeadline,DagRunQueuedAtDeadline,AverageRuntimeDeadline_evaluate_with()stub (raisesNotImplementedError) to support custom referencesIn airlfow-core, removed the
ReferenceModelsclass but with__getattr__redirectSerializedReferenceModels stays in core with full database logic - no changes made there.
Sanity Run
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.