sasjs / server

Build Apps on Base SAS
https://server.sasjs.io
MIT License
20 stars 3 forks source link

Housekeeping of PKG_XXXX files #208

Open allanbowe opened 2 years ago

allanbowe commented 2 years ago

SASjs server appears to be missing a housekeeping process - a number of directories are being created in the /tmp folder that are not being removed, see:

image

Expanding one of these folders, there are numerous files:

image

Each of which contains a SAS program:

image

Perhaps it's in relation to the deployment process?

allanbowe commented 2 years ago

Turns out it must be in relation to the web server - I deleted a bunch of the files and the web apps stopped working!

image

Perhaps the files can be given more meaninful names, and their presence documented in the developer notes on https://server.sasjs.io ?

saadjutt01 commented 2 years ago

files in ./pkg-* are additional files required by our package and part of final executable. See: https://github.com/sasjs/server/blob/main/api/package.json#L30

Refs:

We cannot explicitly delete these folders,

allanbowe commented 2 years ago

I see. Not ideal - the number of /tmp directories it created for the client was substantial, over a short time period also.

Reboot isn't really an option for a shared environment, nor is cronjob (how can we know which files to remove).

Let's keep this issue open until we have the capacity / resource to assist the aforementioned project with a pull request.