[X] I had searched in the issues and found no similar feature requirement.
Description
The org.apache.dolphinscheduler.plugin.task.api.utils.K8sUtils#jobExist lists all the job under specified namespace and then filter by name to judge whether the specified job exist. Because k8s doesn't delete completed job explicitly, listing all the job may cause a huge memory usage, especially when there's too many jobs.
Search before asking
Description
The org.apache.dolphinscheduler.plugin.task.api.utils.K8sUtils#jobExist lists all the job under specified namespace and then filter by name to judge whether the specified job exist. Because k8s doesn't delete completed job explicitly, listing all the job may cause a huge memory usage, especially when there's too many jobs.
Are you willing to submit a PR?
Code of Conduct