-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
AIP-66 Refactor DagRun to DagVersion association #46565
Labels
Milestone
Comments
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 10, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 10, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 11, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 11, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 12, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 13, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 13, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 14, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 14, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 14, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 15, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 17, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 17, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 17, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 18, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ephraimbuddy
added a commit
to astronomer/airflow
that referenced
this issue
Feb 18, 2025
This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565
ntr
pushed a commit
to ntr/airflow
that referenced
this issue
Feb 20, 2025
* AIP-66 Refactor DagRun to DagVersion association This removes DagRun.dag_version association and replaces it with dag_versions property on DagRun that collects all the dag_version_ids associated with the task instances of the DagRun. closes: apache#46565 * fixup! AIP-66 Refactor DagRun to DagVersion association * Update dagrun.dag_version method * fixup! Update dagrun.dag_version method * fixup! fixup! Update dagrun.dag_version method * add more test * Update .pre-commit-config.yaml * fix test * Use association proxy for ti.dag_versions and tih.dag_versions * remove pre-commit changes * loop over dagrun.task_instances and update the dagversion * fixup! loop over dagrun.task_instances and update the dagversion * deduplicate dag_versions using dict.fromkeys * fix test failures * fixup! fix test failures * fixup! fixup! fix test failures * fixup! fixup! fixup! fix test failures * Test that verify_integrity is not called for versioned bundle * order dagrun.version_number correctly * join load task_instances when examining running dagruns
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Context
A DagRun can have multiple DagVersions associated. The reason for that is because the DagVersion can change in between tasks and even in between task tries.
To retrieve the DagVersions associated to a particular DagRun, we should explore the TI (current version) and TIH (history version for tries) and aggregate those.
Ideally this should be accessible through a property / association_proxy / relationship on the DagRun ORM instance so we can easily do
DagRun.dag_versions
to retrieve all of the related ORM DagVersion objects. (In addition we should be able to specify if we want to eagerload or lazyload that attribute).The direct link between DagRun and DagVersion (via the FK) needs to be deleted.
Committer
The text was updated successfully, but these errors were encountered: