https://prefect.io logo
r

Richard Hughes

12/07/2020, 6:01 PM
Hi Community, I have a question about the prefect agents. If I have a prefect agent running on a machine can it run concurrent flows or does prefect need to have 2 agents running simultaneously to have concurrent flows running?
j

Jim Crist-Harif

12/07/2020, 6:01 PM
One agent can kick off multiple concurrent flows
r

Richard Hughes

12/07/2020, 6:02 PM
okay, I think this might solve my problem with the issue I opened last Friday
👍 1
j

Jim Crist-Harif

12/07/2020, 6:03 PM
The only reason to have multiple agents is if you need to run flows with different platform configurations and those differences can't be configured on the flows-side by a run-config: https://docs.prefect.io/orchestration/flow_config/run_configs.html
Regarding that issue, we've identified the (rare) race condition that could lead to that issue, and should have a fix incoming. Prefect Cloud shouldn't have issues with multiple identical agents running (barring the bug you found), but there also isn't really a need for multiple identical agents.
r

Richard Hughes

12/07/2020, 6:12 PM
okay, this makes sense, thanks for finding this issue, and I will turn off the 2nd agents for each one of projects I am running since it is not required.
upvote 1