https://prefect.io logo
t

Tim Enders

06/08/2022, 9:06 PM
Getting this message.
TypeError: cannot unpack non-iterable PrefectFuture object
Do I just need to do
@task(nout=2)
in Prefect 2.0?
z

Zanie

06/08/2022, 9:06 PM
We don’t support unpacking futures yet, though we will in the future. You need to unpack the
.result()
instead but this will block until completion of the task.
t

Tim Enders

06/08/2022, 9:07 PM
OK, I don't think i need the second value anymore, so i will just adjust my task.
16 Views