Hello, since the flow has to be unique within a w...
# ask-community
s
Hello, since the flow has to be unique within a workspace, I would like to alert the developer during PR if they’re trying to use a name that already exists. Are there any apis to validate this using the prefect. yaml . I don’t want a surprise when i run prefect deploy command Any suggestions ?
d
You can use prefect API to get list of all deployed flows .
s
@Deceivious Yes, am doing that but, getting the flow name from prefect.yaml file is where I am stuck. Flow name can be overridden in the flow itself
d
We use python deployment scripts where we check those instead of prefect cli
👍 1