hi, is there currently a good solution for having ...
# ask-community
t
hi, is there currently a good solution for having a flow wait (paused) for multiple outside world events? for example running two parallel sets of ops and both need to block at the same time for approval steps and continue separately of each other
1
k
In this case I think
run_deployment
might be a good option. You could have a parent deployment that kicks off two child deployments that it waits for results from. Each of the flow runs starts by those child deployments could be set to a paused state awaiting approval. https://docs.prefect.io/latest/api-ref/prefect/deployments/deployments/#prefect.deployments.deployments.run_deployment
t
got it, thanks! so no solution for one flow, it either runs or it doesn't, but one workaround would be splitting it into multiple flows.