https://prefect.io logo
Title
r

Ruslan

07/21/2021, 12:53 PM
Hi! How to allow flow run only once in same time? I try to configure flow cncurrency, I gave label to flow, but anyway it is possibly to execute it many times in parallel
k

Kevin Kho

07/21/2021, 1:40 PM
Hey @Ruslan, you want a flow to have a maximum concurrency of 1? How did you configure it?
r

Ruslan

07/21/2021, 3:36 PM
what is the best way?
k

Kevin Kho

07/21/2021, 3:37 PM
On Cloud, you would set it in the Flow Concurrency tab. Flow Concurrency works based on labels.
r

Ruslan

07/22/2021, 6:30 AM
thank you Kevin yes now works hm… i’m sure that was moment when anyway flow runs many time in parallel.. so if I have got 100+ flows I have to configure label and flow concurrency for each??
k

Kevin Kho

07/22/2021, 1:37 PM
I think so, and I think you could make a while loop that hits the GraphQL API to set this, but you only need it on flows in danger of running concurrently. You shouldn’t need this for flows that don’t have very frequent schedules.