Caching Tasks with multiple return values #5201
Unanswered
andersy005
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I am having the same issue. I am using Prefect 1.0 and woudl love to see if what I am tryign to achieve can be done on Prefect 2.0. The secont time it is run it retrieves and error similar as andersy005. Inspecting the saved file it does not contain the dictionary but the last array of the two it shoudl contain. Why is this? Is there a way to save the entire dictionary? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to enable caching for tasks that return multiple values, and I was wondering whether this is something that Prefect can handle and/or whether this would be an anti-pattern? Below is a reproducible example that demonstrates what I am trying to do.
When I run the
flow
for the first time, Prefect doesn't appear to complain or indicate that something is broken:However, the second time around I get this error:
Beta Was this translation helpful? Give feedback.
All reactions