-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Fix ExternalTaskSensor to work correctly with task groups #30742
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
1c669c9 to
52be4cb
Compare
52be4cb to
e51b053
Compare
|
@uranusjr Could you please review? |
|
LGTM. @uranusjr ? |
e51b053 to
2f22f02
Compare
|
@uranusjr Ping, could you please take a look? 🙃 |
|
This looks fine. I’m wondering though, instead of changing the logic to count (mapped) task instances, would it be easier to use something like |
@uranusjr Hi, I think it's not so easy to write that query, and it can be overcomplicated. For me, that overcomplication doesn't cost of saving one not heavy query. |
|
OK. I guess we could always optimise things, the proposed implementation is better than things being broken. |
* Fix ExternalTaskSensor to work correctly with task groups that have mapped tasks * Add tests for ExternalTaskSensor with task group that have mapped tasks * Fix working for multiple runs * Use tuple_in_condition instead of tuple_ --------- Co-authored-by: Zhyhimont Dmitry <dzhigimont@gmail.com> (cherry picked from commit 3c30e54)
Fix ExternalTaskSensor to work correctly with task groups that have mapped tasks.
Unit tests were added.
Closes: #30689