Uh oh!
There was an error while loading. Please reload this page.
Fix pre-mature evaluation of tasks in mapped task group - #40460
Conversation
2399576 to
a69699eCompareThis pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
a69699e to
708a89cCompare708a89c to
2eba0aeCompare2eba0ae to
4d40d46Compare4d40d46 to
caf4087Comparecaf4087 to
9808276Compare9808276 to
9e1ea99Compare9e1ea99 to
33dee9cComparea2025d1 to
ae05cabComparekaxil
commented
Dec 16, 2024
@amoghrajesh is planning to take that on in the next coming days |
ae05cab to
ab1294fCompareCo-authored-by: Tzu-ping Chung <uranusjr@gmail.com> Co-authored-by: Ephraim Anierobi <splendidzigy24@gmail.com>
ab1294f to
63f9fedCompare
Not blocked anymore as mapped operators were handled in |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
* Fix pre-mature evaluation of tasks in mapped task group Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> Co-authored-by: Ephraim Anierobi <splendidzigy24@gmail.com> * Update airflow/ti_deps/deps/trigger_rule_dep.py Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> --------- Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> Co-authored-by: Ephraim Anierobi <splendidzigy24@gmail.com> Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
* Fix pre-mature evaluation of tasks in mapped task group Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> Co-authored-by: Ephraim Anierobi <splendidzigy24@gmail.com> * Update airflow/ti_deps/deps/trigger_rule_dep.py Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com> --------- Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com> Co-authored-by: Ephraim Anierobi <splendidzigy24@gmail.com> Co-authored-by: Ash Berlin-Taylor <ash_github@firemirror.com>
closes: #34023
previous attempts: #34337 (and subsequent #36462 which has been stale and closed)
related issues: #35541
ports: #44937
This PR deals with handling pre-mature evaluation of tasks in mapped task group, which happens when using one of the "fast" trigger rules, and specifically
ONE_FAILED[1]. This PR adds the exact logic presented by @uranusjr and @ephraimbuddy in the previous attempt (#34337), with a slight modification to be executed only for the appropriate trigger rules (the previous attempt has been reverted due to a bug that it caused). The slight modification is rather adding a simpleifstatement, which seems to do the job.For a more robust and performent solution, I think that eventually we'll have to completely refactor the trigger rule dependencies (as their code is quite messy atm).
[1] Theoretically it might also happen in the other "fast" trigger rules (
ONE_SUCCESS,ONE_DONE), but I couldn't come up with good test case for that.^ 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 newsfragments.