-
Notifications
You must be signed in to change notification settings - Fork 15.9k
fix(hitl): check whether task instance is deferring when fetching pending actions #55539
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(hitl): check whether task instance is deferring when fetching pending actions #55539
Conversation
3842398 to
6dd3de2
Compare
6dd3de2 to
70fa2fd
Compare
70fa2fd to
6127ac3
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.
LGTM for the fix as well.
Would it be better to add test for this change? Non-blocking, can be done in further PR.
The test is kinda there but yes, can be improved |
Why
task instance not in deferred state but without responded_at should not be considered as pending action
What
Add
TaskInstance.state == TaskInstanceState.DEFERREDas part of the filter condition^ 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.