https://prefect.io logo
r

Ruben

02/15/2021, 10:32 AM
Hi, I want to limit my agent to running only a single flow / task. I thought I read about this functionality somewhere, but am unable to find it. Do you know where this is explained?
a

ale

02/15/2021, 10:40 AM
Hey @Ruben Flow concurrency is a Prefect Cloud-only feature, are you using Prefect Cloud or Prefect Server/Core?
r

Ruben

02/15/2021, 10:40 AM
Prefect Server/Core
a

ale

02/15/2021, 10:46 AM
Ok, so there’s no out-of-the-box feature to limit flow concurrency. One viable option is to use Prefect GraphQL client to check for other flow runs.
j

Jimmy Le

02/15/2021, 1:58 PM
r

Ruben

02/15/2021, 2:34 PM
I’m currently querying with GraphQL for running flowruns. And then identifying the agents registered to these runs. These labels are then removed from the potential label list. So an already running agent is never given a new task.
Furthermore there is a waiting task which waites until a system comes available