Skip to content
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

Change TI table to have unique UUID id/pk per attempt #44975

Open
kaxil opened this issue Dec 17, 2024 · 0 comments
Open

Change TI table to have unique UUID id/pk per attempt #44975

kaxil opened this issue Dec 17, 2024 · 0 comments
Labels
area:db-migrations PRs with DB migration
Milestone

Comments

@kaxil
Copy link
Member

kaxil commented Dec 17, 2024

We want to update the task instance and ti history tables to have a unique id per attempt (this row id will be used in the strong identity token issued to reach TI attempt.)

We want to add a single column pk of a UUID, and should use UUID v7 (as it has better temporal sorting behaviours than the random v4). For the migration to update existing rows we can use v4 which most DBs have natively.

We should propose keep the "denormalized" columns of dag_id and run_id for easier searching/querying.

@kaxil kaxil converted this from a draft issue Dec 17, 2024
@kaxil kaxil added this to the Airflow 3.0.0 milestone Dec 17, 2024
@dosubot dosubot bot added the area:db-migrations PRs with DB migration label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:db-migrations PRs with DB migration
Development

No branches or pull requests

2 participants
@kaxil and others