-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Fix slow DAG deletion due to missing dag_id index for job table #20282
Conversation
19b8013
to
ddbbdd9
Compare
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
ddbbdd9
to
0b0943a
Compare
0b0943a
to
e244bd4
Compare
@uranusjr can you check what version I should use in the migration docs(I am not sure about it)? I am just using 2.3.0 for now as one of the tests requires me to update that file. |
e244bd4
to
5751f12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. So it turned out to be just one index missing :). Cool.
Static checks need fixing and I think this change uses an old migration head (some change likely implemented hen you branched off?) |
2.3.0 should work. But yeah you should change the |
- helps in speeding up delete operation required to query jobs by dag_id Signed-off-by: Kush <[email protected]>
5751f12
to
4335b24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have rebased on main, resolved the conflicts and updated the down revision
Fixes #20249