Hi, we ran into a problem where processes would ran out of disk space because SimpleCacheFileSystem keeps the LocalTempFiles forever.
It is also not quite obvious how to clear the cache because clear_cache() has the potential to remove currently open files and also might need a call to _mkcache() afterwards.
There is this comment in LocalTempFile that says
# we do not delete the local copy, it's still in the cache.
but it does not really provide a solution.
Happy to provide a PR if there is a clear direction how the project would like to solve this (if it wants to).
Hi, we ran into a problem where processes would ran out of disk space because
SimpleCacheFileSystemkeeps theLocalTempFiles forever.It is also not quite obvious how to clear the cache because
clear_cache()has the potential to remove currently open files and also might need a call to_mkcache()afterwards.There is this comment in
LocalTempFilethat saysbut it does not really provide a solution.
Happy to provide a PR if there is a clear direction how the project would like to solve this (if it wants to).