-
Notifications
You must be signed in to change notification settings - Fork 301
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
Add support for min_success_ratio for local map_task execution #1884
Add support for min_success_ratio for local map_task execution #1884
Conversation
Signed-off-by: Chao-Heng Lee <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1884 +/- ##
==========================================
+ Coverage 49.57% 51.21% +1.64%
==========================================
Files 251 268 +17
Lines 20123 20928 +805
Branches 3453 3458 +5
==========================================
+ Hits 9976 10719 +743
- Misses 9975 10037 +62
Partials 172 172
☔ View full report in Codecov by Sentry. |
Signed-off-by: Chao-Heng Lee <[email protected]>
…-execution # Conflicts: # flytekit/core/array_node_map_task.py # flytekit/core/map_task.py # tests/flytekit/unit/core/test_array_node_map_task.py # tests/flytekit/unit/core/test_map_task.py
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, one nit
Signed-off-by: Chao-Heng Lee <[email protected]>
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.
could you merge master into this branch? it will fix the failing tests
…_ratio-for-local-execution Signed-off-by: Eduardo Apolinario <[email protected]>
…org#1884) * Add min_success_ratio logic in map_task._raw_execute. Add test. Signed-off-by: Chao-Heng Lee <[email protected]> * also update array_node_map_task. Signed-off-by: Chao-Heng Lee <[email protected]> * add log with error. Signed-off-by: Chao-Heng Lee <[email protected]> --------- Signed-off-by: Chao-Heng Lee <[email protected]> Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
TL;DR
Implement min_success_ratio for
local
map_task execution.Type
Are all requirements met?
Complete description
Implement min_success_ratio at map_task._raw_execute by counting failed tasks.
It will exit once there are no chance to meet the min success tasks.
The output element of failed task will present as
None
.(p.s. wonder if just showing the error with the one exceed max failed tasks is reasonable or not?)
Tracking Issue
Fixes flyteorg/flyte#4094
Follow-up issue
NA