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

allow workflow retention by number of workflows, rather than time #5369

Closed
alexec opened this issue Mar 11, 2021 · 5 comments · Fixed by #6854
Closed

allow workflow retention by number of workflows, rather than time #5369

alexec opened this issue Mar 11, 2021 · 5 comments · Fixed by #6854
Assignees
Labels
area/controller Controller issues, panics area/gc Garbage collection, such as TTLs, retentionPolicy, delays, and more type/feature Feature request

Comments

@alexec
Copy link
Contributor

alexec commented Mar 11, 2021

We want to limit the size of the data set. Rather than TTL based on time, what about TTL based on the number of workflows?

apiVersion: v1
kind: ConfigMap
data: 
  retentionPolicy: |
    completed: 10
    error: 3
    failed: 3

Questions:

  • Do we need to differentiate error vs failed vs completed? Is completed enough (frugality).
  • Is this independent from TTL? I think so, you define what is retained, not what is deleted. Just because something has not met its TTL does not mean we should retain it.
  • Is this useful at a cluster-level (easy to implement), at a workflow-level (hard to implement). (frugality)
@basanthjenuhb
Copy link
Contributor

Will be useful to have the have this number at a namespace level also.

@alexec
Copy link
Contributor Author

alexec commented Sep 26, 2021

@basanthjenuhb would you be interesting in implementing this feature?

@NikeNano
Copy link
Contributor

I would be happy to help out working on this @alexec.

@NikeNano
Copy link
Contributor

Will updated the draft during the weekend.

@alexec alexec moved this from To do to In progress in Run The Business (incl. bugs) Oct 18, 2021
NikeNano added a commit to NikeNano/argo-workflows that referenced this issue Nov 29, 2021
alexec pushed a commit that referenced this issue Dec 13, 2021
@alexec alexec moved this from In progress to Done in Run The Business (incl. bugs) Dec 13, 2021
@jixianyihao
Copy link

this retentionPolicy does not have any doc at all? if it can be used in production?

@agilgur5 agilgur5 added area/controller Controller issues, panics area/gc Garbage collection, such as TTLs, retentionPolicy, delays, and more labels Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller Controller issues, panics area/gc Garbage collection, such as TTLs, retentionPolicy, delays, and more type/feature Feature request
5 participants