https://prefect.io logo
Title
a

Adam Green

10/19/2022, 1:17 AM
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

Rob Freedy

10/19/2022, 3:27 PM
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

Adam Green

10/19/2022, 11:00 PM
Thank you @Rob Freedy!
👍 1