Hello! is there an option that allows a flow to ex...
# prefect-community
b
Hello! is there an option that allows a flow to execute in only one instance? in my case, the flow has not finished yet, but the scheduler started it again.
n
Hi @bral - there isn't an option for that - the best solution for this is to add a task to the top of your flow that will skip the entire run if a previous run is still in progress.
b
@nicholas thanks! But how can i get information about running flows now ?
n
You'll need to query either Cloud or Server (whichever you're using) with a graphql query like this:
Copy code
query InProgressFlowRuns($flow_id: uuid) {
  flow_run(
    where: {
      flow_id: { _eq: $flow_id }
      state: { _in: ["Running", "Submitted"] }
    }
  ) {
    id
    name
  }
}
which will give you all
Running
or
Submitted
(about to be running) flow runs for your flow
b
@nicholas Thank you !
😄 1
🚀 1