@Marvin can a deployed flow call another deployed flow as a subflow? will the deployed subflow respect concurrency limits passed during the .serve() method in that case?
m
Marvin
02/14/2025, 6:29 PM
Yes, a deployed flow can call another deployed flow as a subflow in Prefect. When you call a deployed flow as a subflow, it runs as a separate flow run with its own execution context. Regarding concurrency limits, these are configured at the work pool, work queue, or deployment level in Prefect.
The concurrency limits set during the
.serve()
method will apply to the flow runs, including subflows, if they are part of the same deployment or work pool configuration. If the subflow is deployed separately, ensure that its concurrency settings are appropriately configured to respect the desired limits.
For more details, you can refer to the Prefect documentation on task-run limits.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.