-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as not planned
Labels
A: object-storageRelated to the object/content-addressable storageRelated to the object/content-addressable storage
Description
Currently dvc.yamls cache: false has multiple meanings:
- Don't track this file at all, I don't intend to track it, it will be discarded.
- Don't track this file at all, I'm tracking it in Git.
- Don't track this file, I'm using it in
dvc expas an intermediate file.
It seems having a more granular way to express the intent to keep the file away from the cache is needed.
Instead of
extract:
...
outs:
- models/mymodel.h5
cache: falsewe can have
extract:
...
outs:
- models/mymodel.h5
track: {cache, git, exp, lock, ignore}which defaults to cache, (= cache: true in the current version.)
For backward compatibility, cache: true can work as track: cache, and cache: false as cache: git.
track: cachemeans use a.dvcfile to track the changes and use the cache. This is the default.track: gitmeans don't use the cache and don't update the.gitignorefile. Do nothing about this file indvc exp runtrack: expmeans don't use the cache butdvc exp runwill checkout this file to.dvc/tmp/expsindvc exp run.track: lockmeans no need to create a.dvcfile but the changes will be tracked indvc.lockfile. This is for the intermediate files produced in the pipeline.track: ignoremeans both DVC and Git will ignore this file. DVC will ensure that the file is in.gitignoreand won't track it.
There may be more granular options in the future.
Metadata
Metadata
Assignees
Labels
A: object-storageRelated to the object/content-addressable storageRelated to the object/content-addressable storage