Fix backward compatibility for DagRunInfo partition fields - #68342
Merged
Conversation
Contributor
Author
Contributor
Author
|
This PR addresses #68315 by restoring backward compatibility for custom timetables that construct DagRunInfo using the pre-3.2 API. A regression test has also been added to cover this behavior. Could someone please review the implementation and approve the pending workflows? Can you please review the code and merge the changes. Thanks in advance. Thank you! |
Contributor
Author
|
Fixed the CI formatting issues (ruff-format and end-of-file-fixer) and pushed the updates. |
Lee-W
reviewed
Jun 12, 2026
Lee-W
approved these changes
Jun 12, 2026
Lee-W
left a comment
Member
There was a problem hiding this comment.
I'll fix the blank line and then we can merge it
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
1 task
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
This PR restores backward compatibility for custom timetables that were written against Airflow 3.1.x.
Airflow 3.2 introduced
partition_dateandpartition_keyfields inDagRunInfo. Since these fields were required, existing custom timetables constructingDagRunInfowith onlyrun_afteranddata_intervalraise aTypeError, causing scheduling to stop.Why
Custom timetable DAGs fail to schedule after upgrading to Airflow 3.2.x:
raises:
This can result in DAGs showing an empty Next Run field and no scheduled DAG runs being created.
Changes
Added default
Nonevalues for:partition_datepartition_keyAdded a regression test to verify backward compatibility with the legacy
DagRunInfoconstructor.Testing
Added unit test covering construction of
DagRunInfousing the pre-3.2 API and verified default values are correctly assigned to the new partition fields.Fixes #68315
Gen-AI disclosure: I used a generative AI tool to help identify the root
cause, write tests, and draft the PR description. I reviewed, tested, and
verified all changes locally before submitting.
Was generative AI tooling used to co-author this PR?
Generated-by: Claude following the guidelines