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
thankful-minister-83577
04/23/2025, 5:10 PM
if you look in the json tab of the ui for the task, what image is it using?
w
wide-soccer-37846
04/23/2025, 6:19 PM
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
thankful-minister-83577
04/23/2025, 6:55 PM
mind cutting an issue for this please?
thankful-minister-83577
04/23/2025, 7:07 PM
this doesn’t happen on master…
thankful-minister-83577
04/23/2025, 7:07 PM
will need to find the fix and backport it to the .15 branch