@Marvin suppose i use flow.serve() with limit = 10. what happens to flows above the limit that runs are submitted for?
m
Marvin
02/11/2025, 11:44 AM
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
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.