Skip to content

fix(BA-1187): None network deletion error when deleting session #4219

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

Closed
wants to merge 2 commits into from

Conversation

jopemachine
Copy link
Member

@jopemachine jopemachine commented Apr 18, 2025

resolves #4213 (BA-4219).

Checklist: (if applicable)

  • Mention to the original issue

@github-actions github-actions bot added size:XS ~10 LoC comp:manager Related to Manager component labels Apr 18, 2025
@jopemachine jopemachine changed the title fix: None network deletion error when deleting session fix(BA-1187): None network deletion error when deleting session Apr 18, 2025
@jopemachine jopemachine marked this pull request as ready for review April 18, 2025 06:44
@jopemachine jopemachine requested review from Copilot and fregataa April 18, 2025 06:44
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request fixes an error where a None value for network deletion would cause an exception when deleting a session.

  • Added a conditional check for a valid network reference name before attempting to delete the network.
  • Updated the changelog documentation to reflect the fix.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/ai/backend/manager/registry.py Added a safeguard to prevent deletion when network_ref_name is None.
changes/4219.fix.md Updated the change log to describe the fix.

@jopemachine
Copy link
Member Author

Closed as duplicated with #4215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Try to delete null network when destroying sessions
1 participant