xinzhuxiansheng opened a new issue, #4295: URL: https://github.com/apache/streampark/issues/4295
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/streampark/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### Java Version JDK version:1.8 ### Scala Version 2.12.x ### StreamPark Version 2.1.5 ### Flink Version 1.16.x ### Deploy mode kubernetes-application ### What happened The PackerResourceGCTask scheduled cleanup task seems to never be used for Kubernetes jobs. When using Streampark to publish a K8s Job, the directory structure of the image is workspace/appId.toString, as shown below: <img width="1226" height="53" alt="Image" src="https://github.com/user-attachments/assets/7d658468-b1f8-451b-baea-c273ff6938c9" /> So, appWorkspace.listFiles is a collection of directories, which are directories, but their names never contain the @ character. ```java def startGc(expiredHours: Integer): Unit = { val appWorkspace = new File(appWorkspacePath) if (!appWorkspace.exists()) return val evictedBarrier = System.currentTimeMillis - expiredHours * 3600 * 1000 // find flink building path that should be evicted, which are based on pattern // matching of filename. val evictedFiles = appWorkspace.listFiles .filter(_.isDirectory) .filter(_.getName.contains("@")) .flatMap(findLastModifiedOfSubFile) .filter(_._2 < evictedBarrier) .map(_._1) ``` Such scheduled tasks should be distinguished from k8s jobs, at least they should not be run. ### Error Exception ```log ``` ### Screenshots _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR!(您是否要贡献这个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]
