Awaish Kumar
12/04/2023, 9:27 AM...
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: test_flow
entrypoint: flows/test_flow.py:test_flow
work_pool:
name: dimensional-etl
I added GCP push as my architecture (work pool) with above given prefect.yml. But when trying to trigger the flow run I am getting below error. Do you have any idea what's happening? Many thanks
Failed due to a(n) InfrastructureError Flow run infrastructure exited with non-zero status code: Exited with non 0 code. (Error Code: 1). This may be caused by attempting to run an image with a misspecified platform or architecture.
Steps I took to get to this point are:
1. Add a GCP cloud run push as work pool named "dimensional-etl"
2. Create a test flow
3. Add entry in deployments section in prefect.yml file
4. Github action to deploy flows
5. Then trigger a flow run from UI
Am I missing something? @JennyNate
12/04/2023, 2:17 PMimage
you've specified in your GCP push pool configuration? e.g. do you have a Dockerfile
you're using that you could share?Awaish Kumar
12/05/2023, 7:32 AMpull:
- prefect.deployments.steps.git_clone:
id: clone-step
repository: <https://github.com/MinoGames/prefect-etl-dimensionals.git>
branch: master
credentials: "{{prefect.blocks.github-credentials.prefect-dimensional-repo}}"
- prefect.deployments.steps.pip_install_requirements:
directory: "{{clone-step.directory}}"
requirements_file: requirements.txt
stream_output: true