My GCP Cloud Run prefect worker isn't starting wit...
# ask-community
c
My GCP Cloud Run prefect worker isn't starting with the error:
Unable to start worker. Please ensure you have the necessary dependencies installed to run your desired worker type.
I've seen this before and had to downgrade to fix it, IIRC. I'm using the config recommended in the docs, and just upgraded the image to `3.0.10`:
Copy code
image = "prefecthq/prefect:3.0.10-python3.12"

args = [
  "prefect",
  "worker",
  "start",
  "--install-policy", "if-not-present",
  "--with-healthcheck",
  "-p", var.work_pool_name,
  "-t", "cloud-run"
]
Anyone else seen this before?
Hmm, I changed the install policy to
always
and it appears to be working again. Would be interested to know what causes this though, the
if-not-present
option suggests to me that it should still install required dependencies.