Hi Folks, We have deployed Prefect on Kubernetes a...
# ask-community
a
Hi Folks, We have deployed Prefect on Kubernetes and using Kubernetes Executor to run the jobs. We have 2000 deployments running over it. Some Jobs failed due to scripting issues and those are crawling requests, The Problem is some jobs are not deleting if they failed for any reason. However, we have already used the TTL time of the finish Job flag to delete successful jobs and it works as expected but is not able to delete failed jobs. As a result, this increases the number of pods scheduled on Kubernetes and the Kubernetes schedule wouldn't be able to schedule new pods. Is there any way to delete Jobs if they failed for any reason and prevent this issue?