Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Housekeeping of PKG_XXXX files #208

Open
allanbowe opened this issue Jun 20, 2022 · 3 comments
Open

Housekeeping of PKG_XXXX files #208

allanbowe opened this issue Jun 20, 2022 · 3 comments
Labels
wontfix This will not be worked on

Comments

@allanbowe
Copy link
Member

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 allanbowe added the bug Something isn't working label Jun 20, 2022
@allanbowe
Copy link
Member Author

allanbowe commented Jun 20, 2022

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
Copy link
Member

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,

  • other execution which are in-progress depend on these,
  • cannot identify which other in-progress execution is mapped to which folder,
  • and let these be auto delete by system ( via cronjob OR reboot )

@allanbowe
Copy link
Member Author

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.

@allanbowe allanbowe added wontfix This will not be worked on and removed bug Something isn't working labels Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants