Oz Shaked
11/21/2024, 3:17 PMcache_expiration
argument.
⢠Overriding the key name with the cache_key_fn
argument did not work.
Both features functioned as expected when using the default WritableFilesystem
object (writing to the local file system).
Has anyone experienced this or found a solution?alex
11/21/2024, 3:25 PMcache_expiration
currently lets Prefect know when to consider a result "valid" but doesn't control the removal of the stored results. It does make sense that we could control key expiration in the Redis via the cache_expiration
kwarg. Would you be willing to open an issue in GitHub for this?Oz Shaked
11/21/2024, 3:28 PMcache_key_fn
usage also in the prefect_interface
?
BTW, I looked at the code base and actually didn't see where you remove the files in the local system as well.alex
11/21/2024, 4:04 PMcache_key_fn
bug would be great! Prefect doesn't remove any stored results right now, it only ignores results past their expiration. The expiration/removal would only be for Redis right now, but I could see us extending it to other storage mediums that support object expiration (like S3).