https://prefect.io logo
i

iñigo

08/03/2023, 12:39 PM
Hello, Is there an example on how to manage results in prefect when running a flow that has multiple subflows. I have a case where I run a flow that runs a subflow that had 1 out of 10 states failed, but as this subflows is failed... the global flow doesn't start the second subflow. but in this case it is neccessary lo run the second even there was some problem in the first subflow. thanks , I hope this is not too confusing.
d

Deceivious

08/03/2023, 1:09 PM
https://github.com/PrefectHQ/prefect/blob/main/src/prefect/flows.py#L486 When calling a subflow You can add
return_state=True
, This will result in execution of all the subflows even if some of them failed. Not sure if that answers the question though
🙌 1
i

iñigo

08/03/2023, 4:25 PM
YEs, I think that will help me. I've seen also the section of results in Prefect docs.
Thank you very much @Deceivious