-
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
feat: add retry when kill container #7404
Conversation
26663e0
to
f0db246
Compare
Please fix the failing builds. |
@terrytangyuan Done |
3aa6e8a
to
8de0afa
Compare
@terrytangyuan ready to re-review? |
if err != nil { | ||
return false, err | ||
} |
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.
We probably only want to retry for transient errors?
cmd/argoexec/commands/wait.go
Outdated
@@ -31,7 +35,21 @@ func waitContainer(ctx context.Context) error { | |||
stats.StartStatsTicker(5 * time.Minute) | |||
|
|||
defer func() { | |||
if err := wfExecutor.KillSidecars(ctx); err != nil { | |||
// Killing sidecar containers | |||
retryCnt := 0 |
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.
We currently don't have retry counter in other places. It might be better to add later in all places where we are retrying.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any update on this? |
Signed-off-by: henrywangx <[email protected]>
@terrytangyuan I have removed |
This comment was marked as spam.
This comment was marked as spam.
The |
Since sometimes the connection between the APIServer is not stable. We don't want to rerun for this case.
So add retry to APIServer.
make pre-commit -B
to fix codegen, lint, and commit message problems.