CA Lee
07/30/2022, 4:46 AMprefect deployment build
, the deployment.yaml
file is overwritten ?Jeff Hale
07/30/2022, 4:55 AMdeployment build
command now supports an optional output flag to customize the name of the deployment.yaml file, to better support projects with multiple flows”
From the 2.01 release notes.CA Lee
07/30/2022, 3:43 PMprefect deployment build path/to/flow.py:flow_name -n flow_name -t tag
creates deployment.yaml
and manifest.json
files in the root directory.
Running this on multiple flows creates multiple .yaml
and `.json`files in the root directory (set of 2 files for each flow).
Is it normal to have these files pile up in the root directory or is there a recommended way to organize these deployment files for multiple flows ?
Creating a /deployments
directory and moving these files to that directory results in:
FileNotFoundError: [Errno 2] No such file or directory: 'flow-name-manifest.json'
when attempting to run a flow from the Prefect Cloud UI.
Modifying the manifest_path
arg in deployment.yaml
file (below DO NOT EDIT) and subsequently issuing the CLI command prefect deployment apply path/to/deployment.yaml
does not work as well.Anna Geller
07/30/2022, 7:04 PMprefect deployment build hi.py:hi --name hi --tag dev --output yourdir/hi.yaml
Oscar Björhn
07/30/2022, 7:25 PMCA Lee
07/31/2022, 2:34 AMdeployments/flow_deployment.yaml
and leaving the manifest file in root folder works as expected.