<#6391 [BUG] cache=True seems broken> Issue create...
# flyte-github
c
#6391 [BUG] cache=True seems broken Issue created by Mathis-Z ### Describe the bug If I understand the docs correctly, then this code should work: from flytekit import task, Cache @task(cache=True) def broken_task() -> None: print("Task executed") Running this causes the error
ValueError: If version is not defined then at least one cache policy needs to be set
. Apparently the defaults are not set correctly? Also, the caching docs mention the existence of
CacheFunctionBody
but searching the source code did not result in any matches. Is this documentation outdated? ### Expected behavior I expect the task to print "Task executed" when running it the first time and then never again. ### Additional context to reproduce No response ### Screenshots No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte