How does one deploy using CLI using CloudRunJob In...
# prefect-gcp
e
How does one deploy using CLI using CloudRunJob Infrastructure block? Refer: https://docs.prefect.io/2.10.12/tutorial/storage/#using-infrastructure-blocks-with-deployments This is incorrect below: but if someone has a solution on how to deploy this
Copy code
prefect deployment build test.py:process_batch -n worker -a -q docker -i cloud-run-job/default
n
hi @Eric Ma - is there a specific reason you're using agents + infra blocks as opposed to workers + work pools? with workers: • you can use a cloud run push pool (avoid running a worker at all) • or, you can just use the
CloudRun
work pool with agents + infra blocks (legacy): • you'll want to specify a
CloudRunJob
infra block that has your
image
and any other required fields you need, and then change your command to
Copy code
prefect deployment build test.py:process_batch -n worker -a -q docker -ib cloud-run-job/my-block-name
note the
-ib
instead of
-i
e
Thanks! Let me try that. I haven’t had a chance to refactor my repo to use workers + work pools yet
👍 1