Hi - looking to call a flow within another flow an...
# ask-community
s
Hi - looking to call a flow within another flow and return the results of the child flow to the parent flow. This works well using the Local agent and Local storage, but returns the following error when called with the Kubernetes agent and GitHub storage:
Copy code
ValueError: The task result has no `location` so the result cannot be loaded. This often means that your task result has not been configured or has been configured incorrectly.
I’m not explicitly providing where or how results of the child flow should be stored, and I believe that is the root cause of the error thrown. Is that correct? If so, what is the preferred method for storing results? e.g. is PrefectResult preferred over S3Result or is it a matter of opinion?
k
Yes that is right. PrefectResult is stored with us, mainly for small objects. And then after that it’s just a matter of what your tech stack is
s
OK cool. We’re using AWS so that’s why I mentioned S3. The data is pretty small, I’ll give PrefectResult a shot and if that doesn’t work use S3Result. Thank you!