Hi, How to deal with tasks which output multiple o...
# prefect-community
m
Hi, How to deal with tasks which output multiple outputs. Currently, it seems if I use those outputs as inputs elsewhere Prefect won't detect the dependency.
k
Which version of Prefect are you using?
m
2.0.3
j
Are you able to provide a code example?
m
For example read two csv dataframes with pandas with the first task, and pass the dataframes to a preprocessor.
k
This is a side effect after the change in 2.0 (returning a Python object instead of Prefect Future) and we are working on fixing this. For now, I suggest that you return a dictionary or a list instead of multiple outputs:
Copy code
{'val1': 1, 'val2': 2}
👍 1