how do i wait for completion of a subflow before r...
# ask-community
a
how do i wait for completion of a subflow before running another subflow?
d
I believe sub-flow runs after sequential by default
Yeah: https://docs.prefect.io/2.13.8/concepts/flows/#composing-flows
Copy code
Subflows will block execution of the parent flow until completion. However, asynchronous subflows can be run in parallel by using AnyIO task groups or asyncio.gather.
a
sorry i mean subflows created using run_deployment within a flow
j
I think you could do this with a concurrency limit: https://docs.prefect.io/latest/guides/global-concurrency-limits/