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

Builds: check for nonexistent object #8261

Merged
merged 1 commit into from Jun 15, 2021
Merged

Builds: check for nonexistent object #8261

merged 1 commit into from Jun 15, 2021

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Jun 14, 2021

No description provided.

@stsewd stsewd requested a review from a team June 14, 2021 19:09
build = Build.objects.get(pk=build_pk)
build = Build.objects.filter(pk=build_pk).first()
if not build:
return
Copy link
Member

Choose a reason for hiding this comment

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

Should we log here? Is this actually an error, or some weird outcome of a race condition?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is probably when a project has been deleted, since we no longer delete builds when a version is deleted. Or if we are using a replica db, that may be too, but don't think we are.

@stsewd stsewd merged commit d61b921 into master Jun 15, 2021
@stsewd stsewd deleted the check-none branch June 15, 2021 00:53
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

2 participants