Aaron Gonzalez
06/05/2023, 4:38 PMPREFECT_API_URL
env var to the external IP address of my vm instance (not the nicest solution but I can clean this up later) and then I can immediately push my blocks and deployments to the server! 👍
The problem comes from when I lauch a run of one of my test deployments that use a Cloud Run Job. I never get out of the "Pending" status in the Prefect UI. Pretty sure it is something with my networking and probably not an actual issue with Prefect, but I can't seem to make any progress. I've tried setting up Serverless VPC Connections to allow the Cloud Run Job to be able to connect to the vm that has the server running, but maybe I've set it up incorrectly 🤷.
Anyone else ever managed to get a cloud run job deployment to work with a vm instance hosted prefect server?Nate
06/05/2023, 7:14 PMAaron Gonzalez
06/05/2023, 8:22 PMStarting v2.10.12 agent connected to http://<MY_VM_EXTERNAL_IP>:4200/api...
___ ___ ___ ___ ___ ___ _____ _ ___ ___ _ _ _____
| _ \ _ \ __| __| __/ __|_ _| /_\ / __| __| \| |_ _|
| _/ / _|| _|| _| (__ | | / _ \ (_ | _|| .` | | |
|_| |_|_\___|_| |___\___| |_| /_/ \_\___|___|_|\_| |_|
Agent started! Looking for work from queue(s): default...
14:25:20.114 | INFO | prefect.agent - Submitting flow run 'dd2398ac-e227-45b2-9c1b-6eb2b8bfacbb'
14:25:20.822 | INFO | prefect.infrastructure.cloud-run-job - Creating Cloud Run Job prefect-5fb4ea7807f94394a3dc533029dadea5
14:25:21.645 | INFO | prefect.infrastructure.cloud-run-job - Job is not yet ready... Current condition: waiting for condition update
14:25:27.006 | INFO | prefect.infrastructure.cloud-run-job - Submitting Cloud Run Job 'prefect-5fb4ea7807f94394a3dc533029dadea5' for execution.
14:25:27.509 | INFO | prefect.infrastructure.cloud-run-job - Cloud Run Job 'prefect-5fb4ea7807f94394a3dc533029dadea5': Running command 'python -m prefect.engine'
14:25:27.623 | INFO | prefect.agent - Completed submission of flow run 'dd2398ac-e227-45b2-9c1b-6eb2b8bfacbb'
Aaron Gonzalez
06/05/2023, 8:24 PMRyan Peden
06/08/2023, 1:19 PM