<@ULVA73B9P> can a deployed flow call another depl...
# ask-marvin
r
@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
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.