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

[Core feature] Introduce PhaseInfoFailureWithCleanup for non-recoverable pod states #4198

Closed
2 tasks done
Tracked by #4064
katrogan opened this issue Oct 10, 2023 · 3 comments
Closed
2 tasks done
Tracked by #4064
Labels
backlogged For internal use. Reserved for contributor team workflow. enhancement New feature or request exo good first issue Good for newcomers

Comments

@katrogan
Copy link
Contributor

Motivation: Why do you think this is important?

For non-recoverable pod states, such as

case "CreateContainerConfigError", "InvalidImageName":
t := c.LastTransitionTime.Time
return pluginsCore.PhaseInfoFailure(finalReason, finalMessage, &pluginsCore.TaskInfo{
OccurredAt: &t,
}), nil

We should introduce a PhaseInfoFailureWithCleanup method similar to

return pluginsCore.PhaseInfoRetryableFailureWithCleanup(finalReason, finalMessage, &pluginsCore.TaskInfo{
to ensure the pod is cleaned up

Goal: What should the final outcome look like, ideally?

Invalid pods should result in workflow failure and be eventually cleaned up

Describe alternatives you've considered

Current implementation: leaves pod hanging indefinitely

Propose: Link/Inline OR Additional context

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes
@katrogan katrogan added enhancement New feature or request untriaged This issues has not yet been looked at by the Maintainers labels Oct 10, 2023
@katrogan
Copy link
Contributor Author

cc @hamersaw

@eapolinario eapolinario added good first issue Good for newcomers hacktoberfest and removed untriaged This issues has not yet been looked at by the Maintainers labels Oct 19, 2023
@adarsh-jha-dev
Copy link
Contributor

Hey @katrogan , could you please assign me this issue ?

@pvditt
Copy link
Contributor

pvditt commented Nov 15, 2023

Hi @adarsh-jha-dev, would you mind if I took this issue over? I need to add a PhaseInfoFailureWithCleanup function to wrap up an issue with map tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlogged For internal use. Reserved for contributor team workflow. enhancement New feature or request exo good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants