-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Temporary files are never cleaned #2253
Comments
Since stan-dev/cmdstanpy#569 (e.g. cmdstanpy 1.0.2+) cmdstanpy itself should avoid this problem. #2088 was before this release, when all cmdstan runs were saved in one temp folder, which could lead to collisions. |
Just double checking:
|
Cmdstanpy cleans up its own files using atexit |
Yep nice, just tested and it's working as expected for CV. Will do a quick PR to bump the minimum version for |
While doing cross-validation for hyperparameters tuning, I noticed the filesystem usage growing indefinitely.
During processing some directories are created in
/tmp
, but they are never cleaned.Looking at the code I think the issue is in the
fit
method inmodels.py
:The
mkdtemp
function requires the user to manually delete the directory once it is no longer needed (see the doc) but I don't see where it is cleaned here.The
cmdstanpy
doc also says the following:So I'm wondering if
output_dir = mkdtemp()
is really necessary here ?Thank you!
The text was updated successfully, but these errors were encountered: