ephraimbuddy opened a new pull request, #68389:
URL: https://github.com/apache/airflow/pull/68389
The latest DagVersion was selected by created_at DESC, which
is not deterministic when two versions share a timestamp (or under clock
skew).
write_dag derives the next version_number from that row, so picking a
non-max row collided with the (dag_id, version_number) unique constraint. Order
by the monotonic, unique version_number instead, consistently across
get_latest_version/write_dag, get_version, and the bulk prefetch.
---
##### Was generative AI tooling used to co-author this PR?
- [x] Yes (please specify the tool below)
Claude opus 4.8
--
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]