Daniel
11/04/2024, 5:43 PMgcloud run deploy prefect-worker --image=prefecthq/prefect:2-latest \
--set-env-vars PREFECT_API_URL=$PREFECT_API_URL,PREFECT_API_KEY=$PREFECT_API_KEY \
--memory=4Gi \
--service-account <SERVICE-ACCOUNT-NAME> \
--no-cpu-throttling \
--min-instances 1 \
--args "prefect","worker","start","--install-policy","always","--with-healthcheck","-p","cloud-run-work-pool","-t","cloud-run"
And I keep getting this error:
Unable to start worker. Please ensure you have the necessary dependencies
I have looked at the logs and it appears to keep trying to skip installing prefect v2.19.1 which I want it to and then proceeds to try some dev version of prefect 3. I want it to use prefect v2.19.1. How do I enforce it to install this version of prefect? The error seems to be stemming from some incompatible dependencies of prefect 3 dev version. Please help! At the moment it’s preventing my pipelines from running automatically unless I manually start my work pool which is frustrating.Daniel
11/04/2024, 5:47 PM