You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found a couple issues with the @deadline_reference decorator while working on my Summit workshop.
Docs implied that you could use @deadline_reference without parentheses, as was intended behavior, but using it that way would cause a TypeError (without a particularly helpful message) later when it was called. This PR fixes support for the non-paren version, adds a clearer error message for a related instantiation issue, and cleans up the documentation a little to improve clarity.
This is an additive fix, anything that was working before should still work unchanged.
Was generative AI tooling used to co-author this PR?
[ x ] Yes (please specify the tool below)
Generated-by: [Kiro-CLI (Claude Opus 5)] following the guidelines
Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.
Used bare, the decorator silently rebound the decorated class to the inner decorator function and skipped registration entirely, surfacing later as an unrelated TypeError with an unhelpful message. Accept both forms, add clearer error messaging when a reference cannot be instantiated, and clarify the related docs.
Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.
#70708) (#70966)
* Fix the deadline_reference decorator's no-parenthesis form
Used bare, the decorator silently rebound the decorated class to the inner decorator function and skipped registration entirely, surfacing later as an unrelated TypeError with an unhelpful message. Accept both forms, add clearer error messaging when a reference cannot be instantiated, and clarify the related docs.
* bugfix newsfragment
* sphynx riddles
(cherry picked from commit 8541668)
Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
#70708) (#70966)
* Fix the deadline_reference decorator's no-parenthesis form
Used bare, the decorator silently rebound the decorated class to the inner decorator function and skipped registration entirely, surfacing later as an unrelated TypeError with an unhelpful message. Accept both forms, add clearer error messaging when a reference cannot be instantiated, and clarify the related docs.
* bugfix newsfragment
* sphynx riddles
(cherry picked from commit 8541668)
Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
dabla pushed a commit
to dabla/airflow
that referenced
this pull request
Aug 14, 2026
)
* Fix the deadline_reference decorator's no-parenthesis form
Used bare, the decorator silently rebound the decorated class to the inner decorator function and skipped registration entirely, surfacing later as an unrelated TypeError with an unhelpful message. Accept both forms, add clearer error messaging when a reference cannot be instantiated, and clarify the related docs.
* bugfix newsfragment
* sphynx riddles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Found a couple issues with the
@deadline_referencedecorator while working on my Summit workshop.Docs implied that you could use
@deadline_referencewithout parentheses, as was intended behavior, but using it that way would cause a TypeError (without a particularly helpful message) later when it was called. This PR fixes support for the non-paren version, adds a clearer error message for a related instantiation issue, and cleans up the documentation a little to improve clarity.This is an additive fix, anything that was working before should still work unchanged.
Was generative AI tooling used to co-author this PR?
Generated-by: [Kiro-CLI (Claude Opus 5)] following the guidelines
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.