-
Notifications
You must be signed in to change notification settings - Fork 112
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
Introduce configurable TTLSecondsAfterFinished for tasks #2252
Comments
Can we expose the whole Job spec as a field in the WorkLoadinstance or the Workload so the behavior can be fine-tuned? Also, there should be an easy way to suggest this config from the annotation of the Deployment of the actual app, as these resources are dynamically generated by the controller. It will be a complicated user-experience(and not a pleasant one) if you have to modify resources for which you are not responsible for the lifecycle. |
What's the reason why you want to have the complete jobspec in the workload instance or the workload? wouldn't it fit better into the KeptnTaskDefinition? |
I agree with @mowies the job specs should be probably linked as a reference in the taskDefinition or directly merged in it.... In our original poc the container runner was like that, but we discussed that it was better to limit what the user can run via Keptn so this was changed at implementation time. So we should either keep it under Keptn control or enrich the container runner or swap it for a full job spec. |
although an interesting scenario could be that one team creates taskdefinitions and another team controls the KeptnApps/Workloads and the app team maybe wants to control how the job lifecycle is handled by customizing some things from the workloads/apps |
Hey @RealAnna, I wd like to help it. |
@prakrit55 we will need to refine this today and decide what to do 😸 will ping you when it is ready |
Hey @prakrit55 have you started working on this ticket? :) |
Hey @thisthat, everything is done in my local, just unit tests are left. I was hoping and working on #2254. If its time bound, I will make a quick pr on it. |
Hey @prakrit55 no rush :) I went through the tickets and so that we never ping you again after the refinement ;) |
@thisthat , does the ttlSecondsAfterFinished creates another job after 10 seconds of removal? Its creating another job after 10s but not after 15 in ttl. Help me with a reply 🙂 |
|
Currently, Keptn Tasks are never deleted. As a user, I may want to have them automatically cleaned up after a certain time. See https://keptn.slack.com/archives/CNRCGFU3U/p1696847482466449
We could introduce a configurable timeout in the helm chart of the lifecycle operator, and also allow users to customize/override it in the KeptnTaskDefinition specs.
For more info check TTLSecondsAfterFinished
AC
DefaultTTLSecondsAfterFinished
(defaults to 10min)TTLSecondsAfterFinished
TTLSecondsAfterFinished
pass this value at job creation, otherwise useDefaultTTLSecondsAfterFinished
DoD
The text was updated successfully, but these errors were encountered: