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
Deceivious
09/28/2023, 8:06 AM
You can use prefect API to get list of all deployed flows .
s
Sivanandha Rajadurai
09/28/2023, 1:26 PM
@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
Deceivious
09/28/2023, 2:35 PM
We use python deployment scripts where we check those instead of prefect cli
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.