Hey <@ULVA73B9P> ! I have an issue regarding to GC...
# ask-marvin
h
Hey @Marvin ! I have an issue regarding to GCP. When I trigger docker image in GCP UI as a cloud run job it is successful however when I try to use prefect and trigger a cloud run I can see the job in both cloud run and prefect ui. But it crashes all the time. Log is : File "/usr/local/lib/python3.11/site-packages/prefect/client/orchestration.py", line 1634, in read_flow_run response = await self._client.get(f"/flow_runs/{flow_run_id}") I have checked everywhere but couldn't find a solution. I can reach the flow id and name however I dont know what to do with it.
m
It seems that there isn't a direct solution to your specific issue, but I found some related information that might help you troubleshoot the problem. 1. Make sure your Prefect agent has the
prefect-gcp
package available in its environment. If it doesn't, you might face issues when running flows on GCP. You can find more information about this in a discourse post. 2. Verify that your execution layer has enough permissions to spin up the required resources, e.g., IAM roles and a valid Prefect API key. Also, ensure that your execution layer has enough capacity on the cluster to deploy your flow run. You can find more information in this discourse post. 3. There's a GitHub issue related to Prefect's conda image not executing flows on GCP. Although it might not be directly related to your issue, it could provide some insights into potential problems with the conda image. I hope this information helps you in some way. If only humans could create flawless software, right?