https://prefect.io logo
j

John Mizerany

06/30/2023, 3:08 PM
Does the prefect-worker helm chart do any pod clean up on completed flow run pods? I know there is a package for prefect-kubernetes that could be useful, but I wasn’t sure if the helm chart itself did that
c

Christopher Boyd

07/05/2023, 2:18 PM
that’s a work-pool configuration I believe - and do you mean Jobs or pods? The pods should clean themselves up once complete, all the jobs might linger as 1/1 completed
j

John Mizerany

07/05/2023, 2:23 PM
This message contains interactive elements.
c

Christopher Boyd

07/05/2023, 2:24 PM
Do you have a ttl set on the work pool config ?
It’s not default in the helm chart I believe as that’s for the worker , not the created jobs
j

John Mizerany

07/05/2023, 2:25 PM
Ohhhhh no 🙂
That’s something I can fix! Thanks!
1
catjam 1
If I were to set it now, would it go back and clean up those past ones?
c

Christopher Boyd

07/05/2023, 2:25 PM
I don’t believe so, the ttl gets attached to the job spec on creation
So it wouldn’t clean up old existing ones unfortunately
thank you 1
j

John Mizerany

07/05/2023, 2:26 PM
That’s okay! I can use kubectl to clean up the old ones for me thank you