Andrey Tatarinov
12/14/2020, 7:14 PMresult=GCSResult
and cache_for=timedelta(hours=1)
.
I notice, that when I'm not rebuilding docker image Prefect is respecting cache, i.e. second run goes much faster than first. But it seems that each rebuild of an image invalidates cache.
Q: is it true? How can I get more insight on how caching works?Kyle Moon-Wright
12/14/2020, 7:46 PMcache_validator
at all? There are a variety of cache_validators available to check the validity of your result which may be of some interest to you, if the subsequent run had different parameters for example - the cache won’t be respected (and we can use cache_validator= prefect.engine.cache_validators.all_parameters
rather than the default).Andrey Tatarinov
12/14/2020, 7:52 PMduration_only
would be used.Andrey Tatarinov
12/14/2020, 7:53 PMAndrey Tatarinov
12/14/2020, 8:00 PMKyle Moon-Wright
12/14/2020, 8:04 PMKyle Moon-Wright
12/14/2020, 8:04 PMAndrey Tatarinov
12/14/2020, 8:24 PMKyle Moon-Wright
12/14/2020, 8:50 PM