Hey all, I'm looking into caching of outputs righ...
# flyte-support
g
Hey all, I'm looking into caching of outputs right now. I was wondering if we could also set a TTL/expiry date. This is not so that flyte triggers some delete function in the blob, but rathers is aware that the cache can expire. (because of data lifecycles on the storage side). Or will flyte automatically detect if a cached file does not exist and rerun the task instead?
h
Hey @gentle-tomato-480 , you can't set ttl per item but you can set it in a propeller config for all items. For the exact reason you stated
g
Thanks, I'll have a look!
@high-park-82026 Is it the
max-ttl-hours
setting? Because that seems to do something else:
Maximum number of hours a completed workflow should be retained. Number between 1-23 hours
Unless checking the cache is the part of the `retaining the completed workflow`>
h
@gentle-tomato-480 it should be this max-cache-age config option.
g
Thanks @hallowed-mouse-14616 I see that scheduler and admin also expose a
max-cache-age
config option Should I set the same value in for all of these or how they different?