Should prefect clean up the jobs created in k8's -...
# prefect-community
r
Should prefect clean up the jobs created in k8's - created a scheduled job but the jobs get left in an 'Active' state even thought he pod is completed
r
Hey @redsquare! This discourse document explains how the Kubernetes agent cleans up jobs after flow runs: https://discourse.prefect.io/t/how-and-when-does-a-kubernetes-agent-clean-up-kubernetes-jobs-after-flow-run-completion/951
r
hey @Rob Freedy sorry I should have clarified prefect 2.0
k
This was added in 2.0b7. What version are you on?
r
I am on 2.0b7 - does delete_finished_jobs default to true
k
I’d have to ask
r
is the orion k8s agent not open sourced as yet
k
It is, I’m just not really in front of the computer to dig since I’m OOO. Just know this was definitely being added.
r
No worries - was trying to find it but the agent folder structure is diff on the orion branch
k
This doesn’t exist yet
r
You mean the delete?
k
The auto clean up. It does for 1.0 but 2.0 does not have it yet
r
aha spent ages trying to find it in the source
cheers