jedcunningham commented on code in PR #71696:
URL: https://github.com/apache/airflow/pull/71696#discussion_r3797980606
##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -461,10 +492,14 @@ def clear_task_instances(
_recalculate_dagrun_queued_at_deadlines(dr, dr.queued_at, session)
+ # A run with no version of its own has nothing to preserve, so the
latest is all
+ # it can be re-run on. Runs migrated from Airflow 2 are like this,
as are runs
+ # whose version `airflow db clean` has since deleted.
+ use_latest_version = run_on_latest_version or
dr.created_dag_version_id is None
Review Comment:
You're right, and it 404s exactly as you describe. _version_from_dag_run now
falls back to the latest whenever created_dag_version_id is NULL regardless of
bundle_version, mirroring what get_dag_for_run_or_latest_version already does.
--
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]