Skip to content
New issue

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

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

Already on GitHub? # to your account

Option to update less specific cache when a file cache changes #79

Open
askoufis opened this issue Oct 1, 2024 · 0 comments
Open

Option to update less specific cache when a file cache changes #79

askoufis opened this issue Oct 1, 2024 · 0 comments

Comments

@askoufis
Copy link

askoufis commented Oct 1, 2024

Currently, if I specify multiple cache levels, e.g.:

path: cache
manifest: foo.txt
save:
  - file
  - pipeline

The pipeline cache is not updated when the file cache is updated. This results in the pipeline cache becoming quite stale over time. The only way to update it is to either enable force, either temporarily or permanently, or to delete the file. Both of these options aren't ideal.

Ideally there'd be an option to update more general caches when a file cache changes. E.g. when the manifest hash changes, both file and pipeline caches are updated. The hash of the pipeline cache itself doesn't need to change, but the cache should. That way the pipeline cache stays relatively fresh compared to the file cache.

An alternative to this could be an option to allow falling back to the most recently created cache, sort of similar to how github actions' restore-keys works.

@askoufis askoufis changed the title Option to update less specific cache when a more specific cache changes Option to update less specific cache when a file cache changes Oct 1, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant