Hi. How can I best limit the execution of a flow? ...
# ask-community
m
Hi. How can I best limit the execution of a flow? In Prefect 1.0, for each flow, we would set the "Flow Run Concurrency" in the UI for each flow. In Prefect 2.0, I create a work queue for each flow and limit the "Concurrency Limit" to 1. However, I notice that multiple flows are being launched without waiting for a previously launched flow to finish its execution.
t
Hi @Mike, I'm facing the same issue in Prefect 2.0, did you find any solution for it?
I contacted Prefect support and this was raised - https://github.com/PrefectHQ/prefect/issues/10771 Solution is to explicitly specify the pool when agent is started.