Hello! I've been excited to use the new caching in...
# flyte-support
w
Hello! I've been excited to use the new caching introduced in version 1.15, especially the (apparently new?) ability to cache the results of sub-workflows, but I can't get the example in the docs to register or run on
remote
. When I register the module, I get the error
*TypeError:* 'Cache' object cannot be interpreted as an integer
. I've double-checked: the flyte binary image is version 1.15.3, and the version of flytekit being used for the
pyflyte register
command is 1.15.3 as well. The example runs locally. I'd appreciate any help, we have a couple of workflows with some big map tasks that could really benefit from caching at the outer layer.
t
if you look in the json tab of the ui for the task, what image is it using?
w
So the error arises in the terminal, before the task completes registration. If I register the task without the cache object (i.e. without caching, or using
Copy code
cache=
=True
) then the version of the task looks right (screenshot attached)
t
mind cutting an issue for this please?
this doesn’t happen on master…
will need to find the fix and backport it to the .15 branch
we have yet to cut the 1.16 branch unf.
will keep you apprised