Abhinav Chordia
06/02/2023, 4:34 PMpython_repo /
projectA /
src/projectA/flows/...
pyproject.toml
projectB /
src/projectB/...
pyproject.toml
projectA depends on projectB and I’d like to deploy all live changes within the python_repo.
What is the recommended approach for doing this?Jamie Zieziula
06/02/2023, 4:54 PMprefect project init
.
You’ll define a single prefect.yaml & deployment.yaml file at the root of your repo where you can specify the needed configuration for all of your flowsJamie Zieziula
06/02/2023, 4:56 PMprefect.yaml
would look something like this:
pull:
- prefect.projects.steps.git_clone_project:
repository: <https://github.com/YourOrg/python_repo>
branch: main
access_token: github_pat_token
this will tell prefect to pull and load your flow code from this repo at runtimeJamie Zieziula
06/02/2023, 4:58 PMdeployments:
- name: Project A Flow 1
version: null
tags: []
description: null
schedule: {}
flow_name: null
entrypoint: projectA/flows/flow1.py:flow
parameters: {}
work_pool:
name: work-pool-name
job_variables: {}
- name: Project B Flow 1
version: null
tags: []
description: null
schedule: {}
flow_name: null
entrypoint: projectB/flows/flow1.py:flow
parameters: {}
work_pool:
name: work-pool-name
job_variables: {}
Abhinav Chordia
06/02/2023, 4:58 PMJamie Zieziula
06/02/2023, 5:00 PM