-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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(executor):Failure node failed to get archived log #5671
Conversation
6495066
to
ac48311
Compare
Codecov Report
@@ Coverage Diff @@
## master #5671 +/- ##
==========================================
+ Coverage 47.05% 47.15% +0.09%
==========================================
Files 240 240
Lines 15049 15056 +7
==========================================
+ Hits 7082 7099 +17
+ Misses 7062 7052 -10
Partials 905 905
Continue to review full report at Codecov.
|
ac48311
to
01c8ba3
Compare
Signed-off-by: uucloud <uucloud@qq.com>
01c8ba3
to
0811cbf
Compare
cmd/argoexec/commands/wait.go
Outdated
@@ -60,12 +60,14 @@ func waitContainer(ctx context.Context) error { | |||
// Saving output parameters | |||
err = wfExecutor.SaveParameters(ctx) | |||
if err != nil { | |||
wfExecutor.AnnotateOutputs(ctx, logArt) |
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.
I think we need a slightly different approach here.
In each error branch of this func, we exit. Instead, we should just add wfExecutor.AddError
. We do not need to exit until the end of the func, where we can exit with an error if there we any errors.
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.
I modified the code until the func was executed to the end, and then checked for errors and exited, but I'm not sure if KillSidecars error should be checked as well?
Signed-off-by: uucloud <uucloud@qq.com>
Checklist:
close #5669