-
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
Pods do not get deleted on success/failure #2173
Comments
I feel like I have also seen this unexpected behaviour. |
Introduced in #1234 |
Unable to repro on master (v2.5) @nirav24 this is a new feature. Can I ask you to upgrade to v2.4.3 and see if the issue still occurs? This may (very low probability) fix this issue. If not, I'd like to ask for more data. Specifically, can you include the output of
@jackywu do you want to chime in on this feature as you authored it originally? I wonder if it is possible for a workflow to complete before a pod is ready to be GCd? I'd noted you can delete a workflows, but PodGC does not happen - the pod can become orphaned. Additionally, if the workflow complete before the pod, then I'm not sure it'll get GC. I wonder if we need to tweak the implementation:
|
I've linked a PoC fix for my hypothetical issue with this. |
Thanks @alexec for the quick reply. I will update argo and try it again. Also, I will update the logs as well. |
I am including output requested below
upgrading |
Thank you @nirav24 - great! @jackywu and @jessesuen what do you think to my comments above please? |
@nirav24 I've come back to this and I need to clarify something really important. PodGC only applies to pods, not to workflows - there is no GC for workflows. It is actually not clear from the title of this issue whether or not you are referring to pods, to workflows, or to both. |
@alexec I am referring to both. I can see pods with |
Sorry for the wrong title. I've changed it. |
Ok. You're running an older version. Have you tried in v2.4.3 or v2.5.0-rc9 (if you're on a test environment - but this is a big change!) |
I've tried with v2.4.3. I can try with v2.5.0-rc9 as well. Running v2.4.3 did not delete pod as well. |
@alexec sorry for super delay on this. I've tried with v2.5.0-rc9. Argo deletes pod based on given strategy. Thanks for all your help. I am not sure to keep this issue open since it did not work with v2.4.3 or it was not suppose to work. |
@jackywu it does sound like there is a bug with this feature - is this something you'd want to own investigating or fixing? |
@nirav24 @alexec I'm so sorry, I don't have enough time to investigate it right now. @jessesuen , do you have time to check it. |
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. |
Checklist:
What happened:
I am trying to implement GC strategy to delete pods automatically after workflow is done. However, podsdon't get deleted. I've tried with all strategy options (see), but result is the same.
What you expected to happen:
Workflows should be deleted after Success or failure.
How to reproduce it (as minimally and precisely as possible):
Submit following workflow with argo CLI.
Anything else we need to know?:
Workflow.yaml
Environment:
The text was updated successfully, but these errors were encountered: