jason810496 commented on issue #45995: URL: https://github.com/apache/airflow/issues/45995#issuecomment-2622538375
Hi @bbovenzi, may I ask when the case of "but some DAG runs can have multiple versions" would occur? Since there is a `dag_version_id` in the `DagRun` model, shouldn't there be only one `dag_version` per `DagRun`? https://github.com/apache/airflow/blob/main/airflow/models/dagrun.py#L169-L170 Or is making `dag_versions` a list mainly for UI purposes? For example, `latest_dag_runs: list[DAGRunResponse]` is used in `DAGWithLatestDagRunsResponse`. However, even in this case, each item in `latest_dag_runs` still corresponds to a `DagRun` model, which should have only one `dag_version` per `DagRun`. Or is this related to `DagModel` instead of `DagRun`? Since `DagModel` has a `dag_versions` relationship, there can be multiple `dag_versions` for a `DagModel`. Thanks! cc @pierrejeambrun -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
