dan
11/10/2023, 5:26 AMKevin Grismore
11/10/2023, 4:51 PMcloud-run-pool
, and you also have a deployment with cloud-run-pool
as the assigned work pool. Let's also assume you have an image built with your code in it, and your deployment has that image name and the flow function's entrypoint specified. When that deployment is run, the worker will pick up the scheduled run and submit it to Cloud Run by hitting a Cloud Run endpoint affiliated with your GCP project with all the info in your work pool and your deployment needed to start a Cloud Run job with your image and any other customizations.
One of the main benefits of using a worker in a scenario like this is that you can run it in your secure environment (like one of the compute services in your GCP project) and you don't need to store any credentials in your Prefect Cloud workspace, since the worker is reaching out to the Prefect API and starting work in an environment where it's already authenticated to do so.Kevin Grismore
11/10/2023, 5:20 PM