https://prefect.io logo
r

Rio McMahon

07/07/2023, 4:36 PM
Question on workspaces: what is the best practice for leveraging workspaces in prefect 2 for project/process/environmental delineation? I have two competing ideas: 1. Use workspaces to isolate dev/prod: We have a flow called
widget-flow
that is mirrored between a dev workspace and a prod workspace. 2. To isolate processes:
widget-flow
has its own workspace with prod and dev versions of the flow within that workspace. My intuition is that 1) is “better” in that it reduces proliferation of agents/work queues. This also begs the additional question: can a single agent monitor multiple work-queues from multiple work queues? Thanks for any insights.
1
c

Christopher Boyd

07/07/2023, 4:43 PM
In practice, most that i’ve seen delineate workspaces to separate environments and permissioning (e.g. dev/test/stage/prod)
That would be my personal suggestion / recommendation, but your business needs may vary
r

Rio McMahon

07/07/2023, 4:45 PM
Thanks @Christopher Boyd - any insight into a single agent monitoring multiple work queues from different workspaces?
c

Christopher Boyd

07/07/2023, 4:46 PM
not possible
each agent is configured to a specific api url and api key which maps to an account + workspace
same for workers
r

Rio McMahon

07/07/2023, 4:47 PM
Awesome thanks for the clarification!