Tomas Moreno
05/14/2024, 6:30 PMMarvin
05/14/2024, 6:30 PMprefect deploy
allows for deploying multiple deployments, even with the same name, by prefixing the deployment name with its flow name to differentiate them, as mentioned in the Prefect documentation.
If you need to ensure unique deployment names, you might have to manually check existing deployment names before running the prefect deploy
command, or create a custom script or CI/CD pipeline step that verifies uniqueness before allowing the deployment to proceed.
plaintext
prefect deploy --name my_flow/deployment-1 --name my_other_flow/deployment-1
This suggests that you can have deployments with identical names as long as they belong to different flows. However, for deployments within the same flow, you should ensure that each deployment has a unique name.Nate
05/14/2024, 7:54 PMpre-commit
hook for this. you could use yaml
lib to load and inspect the deployment names and prevent commits that introduce deployments with the same nameTomas Moreno
05/15/2024, 1:18 PM