-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Search before asking
- I had searched in the issues and found no similar feature requirement.
Problem Description
After the appconn engine exits, the downloaded appconn packages will not be automatically cleaned up in the engine directory, resulting in an increasing disk space usage. I hope that after optimization, the lib package downloaded by appconn can be automatically deleted when the engine exits.
Description
Due to the fact that the dss-appconns directory is not softlinked to public resources, each engine will download a new directory, resulting in disk usage. Therefore, when the appconn engine exits, it is necessary to clean the dss appconns directory.
Use case
No response
solutions
- Rewrite the hook method (ComputationExecutor. tryShutdown()) when the linkis engine exits in the AppConnEngineConnExecutor class, and add appconn's lib directory cleaning logic to this method.
- Reuse the AppConnUtils. getAppConnHomePath() method of existing tool classes to obtain the root directory of the appconn engine
Anything else
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!