Is it currently possible to add `spec.ttlSecondsAf...
# ask-metaflow
i
Is it currently possible to add
spec.ttlSecondsAfterFinished
or
spec.completions
to kubernetes jobs? I'm happy to open a PR if we need one
1
a
hi! what's the use case for adding
spec.completions
?
i
Just to keep the number of jobs active in k8s to a manageable amount.
a
spec.completions
manages number of instances of the same job.
are you looking into limiting how many jobs are making active progress at any point in time?
i
No, what I’m trying to avoid is a situation where after my flowspec is done running, I have hundreds of kubernetes jobs in a Completed state. They don’t take up any compute so it’s not terrible, but it does make debugging other kubernetes jobs more difficult because of the clutter when running kubectl get jobs
a
ah i see - i don't think
completions
will help with that.
ttlSecondsAfterFinished
will be a better fit - you can set this cluster wide instead and that's what we recommend doing.
👍 1