Hi all,
we saw a weird issue with loading a task cache if there is a nested list, e.g.:
from flytekit import workflow, task
@task(
cache=True,
cache_version="0"
)
def my_task() -> list[list[str]]:
return [["foo"], []]
@workflow
def my_workflow():
my_task()
Executing this a second time, the task will be stuck in
Queued
and there is no error message shown to the user. The flytepropeller logs indicate that it interprets the type of the cached object wrongly:
Error when trying to reconcile workflow. Error [Failed to check Catalog for previous results: unexpected artifactData: [o0] type: [collection_type:<union_type:<variants:<collection_type:<simple:NONE > > variants:<collection_type:<simple:STRING > > > > ]
I assume this is is bug in flytepropeller and created an
issue.