Skip to content

simplecache retains written files indefinitely #2105

Description

@tharwan

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions