-
Notifications
You must be signed in to change notification settings - Fork 16.4k
fix(models/dag): handle pre AIP-39 DagRuns #58229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
53677c9 to
91472c8
Compare
91472c8 to
9741703
Compare
Member
Author
|
will add some test tomorrow but would appreciate some early review |
3 tasks
9741703 to
67ce18f
Compare
67ce18f to
8f25634
Compare
8f25634 to
414f7a8
Compare
414f7a8 to
1f9cbb4
Compare
1f9cbb4 to
67af8ed
Compare
ephraimbuddy
approved these changes
Nov 27, 2025
github-actions bot
pushed a commit
that referenced
this pull request
Nov 27, 2025
(cherry picked from commit 1ce068b) Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Lee-W
added a commit
that referenced
this pull request
Nov 27, 2025
(cherry picked from commit 1ce068b) Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Lee-W
added a commit
that referenced
this pull request
Nov 28, 2025
(cherry picked from commit 1ce068b) Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Lee-W
added a commit
that referenced
this pull request
Nov 28, 2025
ephraimbuddy
pushed a commit
that referenced
this pull request
Dec 3, 2025
RoyLee1224
pushed a commit
to RoyLee1224/airflow
that referenced
this pull request
Dec 3, 2025
itayweb
pushed a commit
to itayweb/airflow
that referenced
this pull request
Dec 6, 2025
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.
Why
Closes: #56451
Back in
3.0.6, we use to haveLazyDeserializedDAG.get_run_data_intervalairflow/airflow-core/src/airflow/serialization/serialized_objects.py
Lines 2185 to 2194 in e965c2e
and
DAG.get_run_data_intervalairflow/airflow-core/src/airflow/models/dag.py
Lines 507 to 527 in e965c2e
They called when we collect Dags.
airflow/airflow-core/src/airflow/dag_processing/collection.py
Line 490 in e965c2e
The dag here is typed as
MaybeSerializedDAGwhich isairflow/airflow-core/src/airflow/serialization/serialized_objects.py
Line 2081 in e965c2e
Thus, both
LazyDeserializedDAG.get_run_data_intervalandDAG.get_run_data_intervalwill be called back in3.0.6However, in
3.1.0, we removed theMaybeSerializedDAGin https://github.com/apache/airflow/pull/54383/files#diff-2f03f28d3201c630dfbae758caf95ada61ab10328de789fc464f6e27c4afb2d0L2687 which makeairflow/airflow-core/src/airflow/dag_processing/collection.py
Line 530 in 54bd5d8
runs only the logic in
DAG.get_run_data_interval.airflow/airflow-core/src/airflow/models/dag.py
Lines 125 to 143 in 54bd5d8
What
Since we now only have
get_run_data-interval, we should consider bothLazyDeserializedDAG.get_run_data_intervalandDAG.get_run_data_intervallogic^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.