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

[Nuclio] List only functions with status when deleting Nuclio functions #5740

Merged
merged 3 commits into from
Jun 10, 2024

Conversation

rokatyy
Copy link
Member

@rokatyy rokatyy commented Jun 7, 2024

Jira - https://iguazio.atlassian.net/browse/ML-6744

The problem with duplicated error happened because list_functions() returns 2 copies of the same functions. One of tag latest and another one of an empty tag. The one with empty tag is the same with latest, but without status, so them both point to the same Nuclio function. In order to avoid duplicated deletion of nuclio functions, we need to filter out those without status.

Copy link
Member

@TomerShor TomerShor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor typo - otherwise approved 👍

server/api/api/utils.py Outdated Show resolved Hide resolved
Co-authored-by: TomerShor <90552140+TomerShor@users.noreply.github.com>
@TomerShor TomerShor merged commit 42f1d6a into mlrun:development Jun 10, 2024
11 checks 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