-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Add wildcard support for dag_id and dag_run_id in bulk ti endpoint #57441
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
Conversation
876c23e to
e7e7a33
Compare
e7e7a33 to
ce5c6b0
Compare
jason810496
left a comment
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.
Nice! Thanks for the PR!
airflow-core/src/airflow/api_fastapi/core_api/services/public/task_instances.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/services/public/task_instances.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/services/public/task_instances.py
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/services/public/task_instances.py
Show resolved
Hide resolved
6f63537 to
8ef0669
Compare
pierrejeambrun
left a comment
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.
Nice.
I just left a comment, I don't have the bandwidth to do an in depth review but overall the direction looks good.
airflow-core/src/airflow/api_fastapi/core_api/services/public/task_instances.py
Outdated
Show resolved
Hide resolved
0f044db to
f985133
Compare
f985133 to
eaf3cbd
Compare
pierrejeambrun
left a comment
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.
One minor nit but looking good to me.
Lets rebase and fix CI and we should be good to move forward. It's a good base and we can iterate on it if needed.
airflow-core/src/airflow/api_fastapi/core_api/services/public/task_instances.py
Outdated
Show resolved
Hide resolved
eaf3cbd to
10a25b2
Compare
4df6ad7 to
138524e
Compare
jason810496
left a comment
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.
Thanks for the update!
Just some nits about query statements then the PR is good to go.
airflow-core/src/airflow/api_fastapi/core_api/services/public/task_instances.py
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/services/public/task_instances.py
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/services/public/task_instances.py
Show resolved
Hide resolved
airflow-core/src/airflow/api_fastapi/core_api/services/public/task_instances.py
Show resolved
Hide resolved
|
Thanks for the nice suggestion toward the queries. All of them have been updated. |
airflow-core/src/airflow/api_fastapi/core_api/datamodels/common.py
Outdated
Show resolved
Hide resolved
22a6c9e to
69fbe3b
Compare
69fbe3b to
e91af57
Compare
Why
The current bulk delete/update endpoint requires making separate N requests when operating across N DAGs, which:
How
Support wildcard (~) matching for dag_id and dag_run_id in bulk task instance API endpoints
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.