<@ULVA73B9P> suppose i use flow.serve() with limit...
# ask-marvin
r
@Marvin suppose i use flow.serve() with limit = 10. what happens to flows above the limit that runs are submitted for?
m
When you use
flow.serve()
with a
limit
parameter set to 10, it sets a concurrency limit on the number of flow runs that can be executed simultaneously. If more than 10 flow runs are submitted, those above the limit will be queued and will wait until a running flow completes before starting. This ensures that no more than 10 flow runs are active at any given time. Concurrency limits can be configured at different levels such as work pools, work queues, or deployments. For more details, you can refer to the Prefect documentation on concurrency limits. If you want to learn more about the
flow.serve()
function and its parameters, you can explore the Prefect API documentation.