-
Notifications
You must be signed in to change notification settings - Fork 16.3k
clear specific dag run TI #23516
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
clear specific dag run TI #23516
Conversation
519baa9 to
94ba5f1
Compare
| session: Session = NEW_SESSION, | ||
| ) -> APIResponse: | ||
| """Clear task instances for given dag run.""" | ||
| dag = current_app.dag_bag.get_dag(dag_id) |
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.
@bbovenzi Could you tell me if the checks are ok or do i have to make any changes?
68bc55e to
05a202d
Compare
05a202d to
e58efed
Compare
a5f7aa0 to
b4a0180
Compare
1ca4aeb to
77fc558
Compare
|
@bbovenzi @ephraimbuddy Could you share your reviews/ feedback about this PR when you get time? Also please share if we have to include |
77fc558 to
b844ed0
Compare
Yes, we need those. This should act as a replacement for the current endpoint the UI uses. |
Then I have to extract only the task_ids( excluding the map_index in tuple) and send that to query and find the upstream or downstream task_ids. Am I right in my understanding? @bbovenzi |
Yes, we'll need all of the following boolean params to send to the query: include_upstream |
b844ed0 to
65ef56c
Compare
@bbovenzi instead of using the field Do you still think |
Ah I didn't realize that. We don't need recursive then |
b6d2940 to
d18c28b
Compare
d931df9 to
7b6656b
Compare
|
@bbovenzi @ephraimbuddy Gentle reminder. I have added the params in |
ff7da7f to
8c29556
Compare
| description: If set to True, also tasks from past DAG Runs are affected. | ||
| type: boolean | ||
| default: false | ||
|
|
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.
Also you need to add these to the Marshmallow schema (you already added dag_run_id but not the others).
c2a3976 to
bab96ba
Compare
bab96ba to
2f8a025
Compare
1a21d3a to
5089533
Compare
5089533 to
458a2ac
Compare
|
Could this PR be reviewed? @uranusjr @bbovenzi @ephraimbuddy |
closes: #23227
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 newsfragement file, named
{pr_number}.significant.rst, in newsfragments.