Skip to content

Conversation

@niall-turbitt
Copy link
Collaborator

Deployment failing because tags already exist on the endpoint and then we were trying to add tags which already exist.

Try catch which:

  1. Checks if the endpoint exists using WorkspaceClient().serving_endpoints.get()
  2. If endpoint exists: Deploys WITHOUT tags (to avoid the duplicate key error)
  3. If endpoint is new: Deploys WITH tags (so new endpoints still get tagged)

@niall-turbitt niall-turbitt merged commit d67d199 into main Nov 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants