Hi everyone quite new to prefect and testing something out but I’m stuck,.
I want to use
Deployment.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?