Victor Churikov06/27/2023, 11:46 AM
Bernhard Stadlbauer06/27/2023, 11:55 AM
And you first run it with
@task(cache=True, cache_version="1") def foo(a: int) -> int: ...
, then with
and then again with
, the third iteration should get a cache hit. Is this what you’ve been thinking? As for cache invalidation, in addition to the bucket lifecycle rules you have to set the
Victor Churikov06/27/2023, 12:04 PM
Bumping theBut now I see that I should in theory be able to keep the cache_version permanently at the same value and it will cache multiple sets of inputs. I am testing this now, will update here when I confirm it works. Thanks a lotis akin to invalidating the cache.
Bernhard Stadlbauer06/27/2023, 12:08 PM
, there’s currently a known issue with regards to caching which should be fixed within the week. Also, be careful with setting the cache version to a fixed value - as we all know together with naming, caching is one of the two hard things in computer science
Victor Churikov06/27/2023, 1:31 PM