Hi! How to restrict some flows to run in parallel?...
# prefect-server
r
Hi! How to restrict some flows to run in parallel? I’m looking at concurrency running labels, but they work on task, not on flows
n
Hi @Ruslan - if you’re using Prefect Cloud you should also have access to flow concurrency. To find this page you can visit the Team button at the top nav in the UI and navigate to the Flow Concurrency page. From there you can specify the flow labels whose concurrency you want to control.
r
may you tell me please how to set label to a flow?
n
Sure! You can set flow labels either at registration time (using the
labels
kwarg on the flow.register call) or through the UI on the flow page by pressing this button:
r
flow.register(project_name=“dwh”, labels=[“osago”]) like this? not working…
tasks are in pending state
I guess I have to add this label to agent too
n
Yes - you'll need to have the relevant labels on any agent you want to pick up the flow
r
thank you @nicholas!
😄 1