-
Notifications
You must be signed in to change notification settings - Fork 260
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
Better error for min_success_ratio<1 #2724
Conversation
Signed-off-by: Yee Hing Tong <wild-endeavor@users.noreply.github.com>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2724 +/- ##
==========================================
- Coverage 49.76% 48.31% -1.45%
==========================================
Files 193 279 +86
Lines 19659 24057 +4398
Branches 4097 2844 -1253
==========================================
+ Hits 9783 11624 +1841
- Misses 9345 12220 +2875
+ Partials 531 213 -318 ☔ View full report in Codecov by Sentry. |
@task | ||
def consume_directories(dirs: List[FlyteDirectory]): | ||
for d in dirs: | ||
print(f"Directory: {d.path} {d._remote_source}") |
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.
nix this
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.
oh this won't run nm, keep
i think it's good to have this... i don't want flytekit to fall into the trap of duplicating the compiler, but this is a common and tricky enough case that I think it's okay to explicitly catch this. |
Signed-off-by: Kevin Su <pingsutw@apache.org>
Tracking issue
NA
Why are the changes needed?
when min_success_ratio < 1, flytekit automatically makes the output interface optional (str => Optional[str])
If the input of the downstream task is not optional, Flytekit will fail to deserialize the output and display a confusing error message
What changes were proposed in this pull request?
check the type at compile time
How was this patch tested?
Setup process
Screenshots
Before:
After:
Check all the applicable boxes
Related PRs
NA
Docs link
NA