-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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 pre-mature evaluation of tasks in mapped task group #40460
Fix pre-mature evaluation of tasks in mapped task group #40460
Conversation
2399576
to
a69699e
Compare
This 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
708a89c
Compare
708a89c
to
2eba0ae
Compare
2eba0ae
to
4d40d46
Compare
4d40d46
to
caf4087
Compare
caf4087
to
9808276
Compare
9808276
to
9e1ea99
Compare
9e1ea99
to
33dee9c
Compare
a2025d1
to
ae05cab
Compare
@amoghrajesh is planning to take that on in the next coming days |
ae05cab
to
ab1294f
Compare
Co-authored-by: Tzu-ping Chung <[email protected]> Co-authored-by: Ephraim Anierobi <[email protected]>
ab1294f
to
63f9fed
Compare
Not blocked anymore as mapped operators were handled in |
Co-authored-by: Ash Berlin-Taylor <[email protected]>
* Fix pre-mature evaluation of tasks in mapped task group Co-authored-by: Tzu-ping Chung <[email protected]> Co-authored-by: Ephraim Anierobi <[email protected]> * Update airflow/ti_deps/deps/trigger_rule_dep.py Co-authored-by: Ash Berlin-Taylor <[email protected]> --------- Co-authored-by: Tzu-ping Chung <[email protected]> Co-authored-by: Ephraim Anierobi <[email protected]> Co-authored-by: Ash Berlin-Taylor <[email protected]>
* Fix pre-mature evaluation of tasks in mapped task group Co-authored-by: Tzu-ping Chung <[email protected]> Co-authored-by: Ephraim Anierobi <[email protected]> * Update airflow/ti_deps/deps/trigger_rule_dep.py Co-authored-by: Ash Berlin-Taylor <[email protected]> --------- Co-authored-by: Tzu-ping Chung <[email protected]> Co-authored-by: Ephraim Anierobi <[email protected]> Co-authored-by: Ash Berlin-Taylor <[email protected]>
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 simpleif
statement, 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.rst
or{issue_number}.significant.rst
, in newsfragments.