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

New feature(Discussion) - deletion of dependency script caches when user specifies a tag similar to -f #280

Open
anandhu-eng opened this issue Sep 23, 2024 · 1 comment

Comments

@anandhu-eng
Copy link
Contributor

Currently, when we remove cache by specifying the tags of the script, only the cache for that particular script is removed.

For example, using the command:

cm rm cache -f --tags=get,imagenet-aux

will only remove the get-dataset-imagenet-aux cache, while the cache files for dependent scripts, such as download-file, will remain intact.

While this approach provides a good safety measure, would it be beneficial to include an option to recursively delete all the dependencies associated with a particular script?

@anandhu-eng anandhu-eng changed the title New feature(Discussion) - deletion of child dependency when user specifies a tag similar to -f New feature(Discussion) - deletion of dependency script caches when user specifies a tag similar to -f Sep 23, 2024
@arjunsuresh
Copy link
Contributor

Hi @anandhu-eng we use extra_cache_tags for this. The idea is to use some set of common tags to identify all related dependencies and we can use cm rm cache -f --tags=<list-of-common-tags>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants