https://prefect.io logo
#prefect-community
Title
# prefect-community
n

Nelson Griffiths

06/08/2022, 1:52 PM
Is there a plan to add the ability to run flows on GCP Cloud Run with Prefect 2.0 anytime soon?
โœ… 1
๐Ÿ‘ 2
a

Anna Geller

06/08/2022, 2:02 PM
you can totally do that - as long as you point your Python file with a flow code to your Cloud 2.0 PREFECT_API_URL, it should work but we don't have any plan for such flow runner as of today, but if you deploy it yourself to GCP Cloud Run, it should work fine
let me open an issue for tracking @Marvin open "Backlog: add GCP Cloud Run flow runner to the GCP Prefect Collection"
๐Ÿ‘ 1
n

Nelson Griffiths

06/08/2022, 2:20 PM
Just out of curiosity, do most people running on GCP just deploy via kubernetes? Or do most people just run on AWS in this community?
Also when you say I could totally already do that, can you explain a little more? Would the agent be on Cloud Run? Or could the agent be on a VM and the flow would just need to kick off another flow on cloud run?
a

Anna Geller

06/08/2022, 3:07 PM
There would be no agent, you would just run it on cloud run as any Python script and point at your Prefect API in your environment setup - same as you get started and run flows locally with ephemeral API We will prepare some resources on that in a couple of weeks or months, stay tuned or try it out yourself And yes, for production, we see most users on GCP use GKE
n

Nelson Griffiths

06/08/2022, 3:43 PM
Okay great thanks!
m

Matthias

06/08/2022, 5:41 PM
Could you then also use this setup with Prefect Cloud 2.0? I.E run a flow anywhere you want and point
PREFECT_API_URL
to cloud 2.0 so that you can view e.g. the logs there?
a

Anna Geller

06/08/2022, 6:13 PM
Absolutely, yes! That's the magic of Prefect 2.0 and incremental adoption
m

Matthias

06/08/2022, 6:30 PM
Does that mean that the agent/work-queue are only responsible for scheduling and starting flow runs? And Iโ€™m guessing you can still set task runners, but not things like storage?
a

Anna Geller

06/08/2022, 6:55 PM
Exactly, task runners would work, but storage, flow runners, agents and work queues wouldn't be necessary - think of it as running flows locally but from anywhere, even serverless - the magic of 2.0 that those seemingly local runs are still trackable through Orion backend using Cloud 2.0
m

Matthias

06/08/2022, 7:07 PM
Thatโ€™s truly awesome! ๐Ÿ˜Ž
๐Ÿ™Œ 1
5 Views