https://prefect.io logo
Title
r

redsquare

06/27/2022, 11:33 AM
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

Rob Freedy

06/27/2022, 2:58 PM
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

redsquare

06/27/2022, 3:00 PM
hey @Rob Freedy sorry I should have clarified prefect 2.0
k

Kevin Kho

06/27/2022, 3:25 PM
This was added in 2.0b7. What version are you on?
r

redsquare

06/27/2022, 3:29 PM
I am on 2.0b7 - does delete_finished_jobs default to true
k

Kevin Kho

06/27/2022, 3:30 PM
I’d have to ask
r

redsquare

06/27/2022, 4:09 PM
is the orion k8s agent not open sourced as yet
k

Kevin Kho

06/27/2022, 4:14 PM
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

redsquare

06/27/2022, 4:15 PM
No worries - was trying to find it but the agent folder structure is diff on the orion branch
k

Kevin Kho

06/28/2022, 7:39 AM
This doesn’t exist yet
r

redsquare

06/28/2022, 7:44 AM
You mean the delete?
k

Kevin Kho

06/28/2022, 7:48 AM
The auto clean up. It does for 1.0 but 2.0 does not have it yet
r

redsquare

06/28/2022, 7:51 AM
aha spent ages trying to find it in the source
cheers