gertjan
09/06/2022, 10:20 AMDeployment.build_from_flow
, it works when I put this in the same directory of the flows
But what I want is the following:
- deployments:
-- deployments.py (file with all my deployments)
- flows:
-- flow_a.py
-- flow_b.py
When I generate the deployments I get:
ValueError: '..../updates/flows/flow_a.py' is not in the subpath of '.../updates/deployments' OR one path is relative and the other is absolute.
It has to do with this line entry_path = Path(flow_file).absolute().relative_to(Path(".").absolute())
-> it does not look like I can edit this βpathβ
Anyone has done this before? Is this even possible?Anna Geller
09/06/2022, 10:38 AMgertjan
09/06/2022, 10:41 AMAnna Geller
09/06/2022, 10:43 AMgertjan
09/06/2022, 10:47 AMAnna Geller
09/06/2022, 10:51 AMprefect deployment build --name s3 -q prod -sb s3/prod -v GITHUB_SHA --apply flows/flow1.py:flow1
prefect deployment build --name s3 -q prod -sb s3/prod -v GITHUB_SHA --apply flows/flow2.py:flow2
prefect deployment build --name s3 -q prod -sb s3/prod -v GITHUB_SHA --apply flows/flow3.py:flow3