ChaoquanTao opened a new issue, #16650: URL: https://github.com/apache/dolphinscheduler/issues/16650
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened `KubernetesApplicationManager` is used to hold the k8s client when k8s task is running, but the cache is only removed in `KubernetesApplicationManager#killApplication` method, which is invoked when k8s task is killed or throw an exception, or failover happens. But when k8s task is finished successfully, the method is not invoked, caused the cached is not removed. ### What you expected to happen The cached should be removed when k8s task finished successfully ### How to reproduce create and execute a k8s task, and periodically print the content of `KubernetesApplicationManager` in the meantime. When k8s task succeeded, the cache of this task still exists. ### Anything else _No response_ ### Version 3.2.x ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
