Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DB] Fix labels setting in update_run #1547

Merged
merged 5 commits into from
Dec 6, 2021

Conversation

Hedingber
Copy link
Contributor

We started getting this when calling the function:

sqlalchemy.exc.IntegrityError: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely)
(pymysql.err.IntegrityError) (1062, "Duplicate entry 'v3io_user-115' for key '_runs_labels_uc'")
[SQL: INSERT INTO runs_labels (name, value, parent) VALUES (%(name)s, %(value)s, %(parent)s)]

It's happening because we were creating new label objects instead of using the existing ones
Fixes: https://jira.iguazeng.com/browse/ML-1492

@Hedingber Hedingber merged commit c187e5c into mlrun:development Dec 6, 2021
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.

None yet

1 participant