Open feliperyan opened 2 weeks ago
hi @feliperyan - thanks for the report!
are you able to share the version of prefect-gcp
you've installed on your cluster with the helm chart? or at least, did you just use --install-policy always
in the prefect worker start
command?
Hi @zzstoatzz thanks for getting back to me. I don't believe I installed prefect-gcp
on the cluster as the helm chart doesn't call it out: https://github.com/PrefectHQ/prefect-helm/blob/main/charts/prefect-server/values.yaml
I followed https://prefecthq.github.io/prefect-gcp/gcp-worker-guide/#step-3-deploy-a-cloud-run-worker which calls out --install-policy always
as you can see from the copy paste below
gcloud run deploy prefect-worker --image=prefecthq/prefect:2-latest \
--set-env-vars PREFECT_API_URL=$PREFECT_API_URL,PREFECT_API_KEY=$PREFECT_API_KEY \
--service-account <YOUR-SERVICE-ACCOUNT-NAME> \
--no-cpu-throttling \
--min-instances 1 \
--args "prefect","worker","start","--install-policy","always","--with-healthcheck","-p","<WORK-POOL-NAME>","-t","cloud-run"
Hi @zzstoatzz I was able to get pass this issue by creating a custom image used in the helm chart I referenced before.
server:
image:
# -- server image repository
repository: <my_own_image_in_gcp_artifact_registry>
## prefect tag is pinned to the latest available image tag at packaging time. Update the value here to
## override pinned tag
# -- prefect image tag (immutable tags are recommended)
prefectTag: <relevant_tag>
My image is nothing more than the below as per https://prefecthq.github.io/prefect-gcp/#build-an-image
FROM prefecthq/prefect:2-python3.11
RUN pip install "prefect-gcp[cloud_storage]"
Bug summary
Running through https://prefecthq.github.io/prefect-gcp/gcp-worker-guide/#google-cloud-run-guide I get to end and run the
deployment
. Flow Run indicates crashes with the logs:Version info (
prefect version
output)Additional context
No response