Skip to content
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: Terminate, rather than delete, deadlined pods. Fixes #8545 #8620

Merged
merged 2 commits into from
May 6, 2022

Conversation

alexec
Copy link
Contributor

@alexec alexec commented May 5, 2022

Signed-off-by: Alex Collins [email protected]

Fixes #8545

Problem: When a step hits it deadline, we delete the pod. Because we delete the pod, we loose all information about the success or failure of the pod. Instead of deleting, we must SIGTERM the pod's containers.

@alexec alexec changed the title fix: Terminate rather than delete deadlined pods. Fixes #8545 fix: Terminate, rather than delete, deadlined pods. Fixes #8545 May 5, 2022
@@ -468,24 +468,6 @@ func (wfc *WorkflowController) processNextPodCleanupItem(ctx context.Context) bo
err := func() error {
pods := wfc.kubeclientset.CoreV1().Pods(namespace)
switch action {
case shutdownPod:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't needed anymore

Signed-off-by: Alex Collins <[email protected]>
@alexec alexec marked this pull request as ready for review May 5, 2022 16:09
@alexec alexec enabled auto-merge (squash) May 5, 2022 16:09
@alexec alexec requested a review from sarabala1979 May 5, 2022 18:52
Copy link
Member

@sarabala1979 sarabala1979 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Will existing Test cover this case?

@alexec alexec merged commit 859ebe9 into argoproj:master May 6, 2022
@alexec alexec deleted the fix-8545 branch May 6, 2022 23:44
@sarabala1979 sarabala1979 mentioned this pull request May 25, 2022
14 tasks
This was referenced Jun 20, 2022
@sarabala1979 sarabala1979 mentioned this pull request Jul 30, 2022
51 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

containers in containersets not appropriately reporting status if terminated
2 participants