mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-28 23:09:20 +01:00
stage: cache: use lockfiles (#3713)
* stage: cache: use lockfiles * reorganize * Reorganize, use fill_from_lock to load stage cache * load params from build cache * adjust tests Co-authored-by: Saugat Pachhai <[email protected]>
This commit is contained in:
co-authored by
Saugat Pachhai
parent
22c60dd608
commit
827c994e74
@@ -41,6 +41,15 @@ class ParamsDependency(LocalDependency):
|
||||
info=info,
|
||||
)
|
||||
|
||||
def _dyn_load(self, values=None):
|
||||
"""Load params values dynamically."""
|
||||
if not values:
|
||||
return
|
||||
for param in self.params:
|
||||
value = values.get(param)
|
||||
if value:
|
||||
self.info[param] = value
|
||||
|
||||
def save(self):
|
||||
super().save()
|
||||
self.info = self.save_info()
|
||||
|
||||
Reference in New Issue
Block a user