Hi everyone, 1. Can anyone please share how you s...
# ask-community
a
Hi everyone, 1. Can anyone please share how you structure your prefect project in github? 2. Also do you run deploy build and apply commands locally? 3. Or do we maintain the deployment yaml files in github? E.g: something similar like below. ├── Business_logic ├── data ├── env ├── pipelines │ │ │── transformations.py │ │ │── utils.py │ │ │ │ │ │ └── README.md └── Makefile └── requirements.txt
y
We are using the ECS push work pools with the prefect.yaml
We have two workspaces (staging and prod).
We a github action that run “prefect deploy --all” to publish the deployments in the prefect.yaml
To run locally we just do it directly via vscode
like in the Prefect docs
The prefect.yaml:
a
Ah ok, thank you so much for the details. So flow goes like this: Development -> push to github-> github action triggers and register flows with prefect cloud -> prefect run the tasks on schedule on provided infrastructure ( ECS push in your case) ? And here you are providing the work pool information in prefect.yaml file for all the flows instead of providing it for every single flow?
y
yes exactly. The work pool is defined once, and used by all deployments.
🙌 1
a
Hi @Yaron Levi I added GCP push as my architecture with similar prefect.yml as yours. But when trying to trigger the flow run I am getting below error. Do you have any idea what's happening? Many thanks
Copy code
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.
y
I have no clue actually. I would ask this in the community group
a
No Worries thank you 🙂
👍 1