jolly-florist-66728
10/18/2024, 10:18 AMERROR: duplicate key value violates unique constraint "projects_pkey"
while registering a workflow and I assume its because I had two different PR’s open at the same time with different changes on . Whats the best way to resolve this ?
# Answer
The error ERROR: duplicate key value violates unique constraint "projects_pkey"
suggests that there is a conflict due to duplicate entries in the database, likely caused by attempting to register workflows with the same identifiers. This can happen if two different PRs are trying to register workflows with the same project name or version.
To resolve this, ensure that each workflow registration uses a unique version identifier. According to Flyte's community discussion, Flyte objects are immutable, and you should change the version you want to register to avoid conflicts.
Would you like more detail on how to implement this?
Sources:
- Flyte's community discussion
Slack Link
https://.slack.com/archives/CP2HDHKE1/p1729246729.253249 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.