What is the expected behaviour when two Prefect ag...
# ask-community
a
What is the expected behaviour when two Prefect agents are listening to the same work queue? We have run an experiment and found that one Agent runs the flows while the other does no work - is this expected? Will the agents ever share work between them?
r
Hey @Adam Green!! I think this discourse post could be helpful: https://discourse.prefect.io/t/agents-and-work-queues-faq/1468#what-are-use-cases-where-starting-multipl[…]r-the-same-work-queue-can-be-beneficial-4 The flow will only run once because Prefect leverages idempotency keys to avoid duplicate flow runs.
👍 1
a
Thank you @Rob Freedy!
👍 1