How can we auto cleanup k8s worker pool's completed and failed job #11201
Unanswered
schwannden
asked this question in
Q&A
Replies: 2 comments
|
We encountered the same issue before. We set TTL for K8s job and it did help. However, we noticed that half of jobs are not automatically deleted and still take up resources. Finally, we ended up using K8s API for killing the job right before exiting Prefect flow and it's been working well so far. |
0 replies
|
Came across this from another thread. Is the This configures the TTL on the worker, which will pass that configuration down to the Job. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have setup prefect server and worker using helm chart, and was able to run seleral workflows. However I noticed that after flowrun complete, kubectl get pod shows the pods still exist. Here is my prefect.yaml
All reactions