-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Support clearing and updating state of individual mapped task instances #22958
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
Support clearing and updating state of individual mapped task instances #22958
Conversation
|
Testing with the UI branch |
95a0a2e to
916ae06
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. |
79ee7de to
98abe5f
Compare
|
Not sure how to fix some mypy errors here. @uranusjr can you help. Thanks |
This comment was marked as outdated.
This comment was marked as outdated.
|
I pushed a commit for this. The entire Edit: Most things seem to work, except MSSQL does not seem to like |
02f3f6b to
45cb2d6
Compare
|
The latest changes got rid of |
|
I added a commit to support |
22581b4 to
0a52609
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.
/confirm, /failed and /success work. But /clear is not processing multiple map_index params chained together.
The UI branch at mapped-instance-actions is up-to-date if you want to manually test it.
|
Because I forgot to modify |
0a52609 to
a890173
Compare
a890173 to
b1b2fd1
Compare
bbovenzi
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.
Everything is working as expected from the UI now
…instances from the UI
…ed taskinstances from the UI
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com> Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
This allows setting multiple instances of the same task to SUCCESS or FAILED in one request. This is translated to multiple task specifier tuples (task_id, map_index) when passed to set_state(). Also made some drive-through improvements adding types and clean some formatting up.
b1b2fd1 to
19ba72a
Compare
Provide support for UI to clear/update state of mapped task instances
TODO: