Hello there! I am currently getting much of our co...
# ask-community
m
Hello there! I am currently getting much of our codebase to work with prefect. In that regard I am doing some flows, where I use the Mapping feature for processing data. I am currently running into a problem, where I want to output multiple values from a mapped task, but I cannot seem to get it working. I have tried specifying both output annotation and nout=2, but it does not seem to register. It returns a TypeError exception saying that the task is not iterable. I have another task which is not a mapped task where this works fine. Is there anyone that have tried this before and can help me get it working? Thanks in advance!
k
Hey @Mathias Lanng, this is currently not doable. See this PR for the discussion and progress around it.
m
What a quick reply - thank you very much. I tried searching for my issue, but did not find the PR - sorry for the inconvenience. What would the best work around be? Return the values in a dictionary and separate them after? This seems to fix the issue but is not the most elegant solution.
k
Yeah exactly. That is the current workaround or a tuple.
Of course, happy to help!