Skip to content

Conversation

@echarles
Copy link
Member

@echarles echarles commented Feb 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 4, 2026 11:24
@echarles echarles merged commit 8101e10 into main Feb 4, 2026
8 of 9 checks passed
@echarles echarles deleted the enh/shutdown branch February 4, 2026 11:24
Copy link

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 PR relaxes error handling during kernel shutdown so that common "already gone" or transient server errors no longer propagate as exceptions from shutdown_kernel.

Changes:

  • In KernelHttpManager.shutdown_kernel, broaden the set of HTTPError status codes that are treated as non-fatal (ignored) during shutdown.
  • Log ignored shutdown errors with the raw HTTP status code rather than a hard-coded "kernel not found" message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

)
else:
raise
except BaseException as e:
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

Except block directly handles BaseException.

Suggested change
except BaseException as e:
except Exception as e:

Copilot uses AI. Check for mistakes.
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.

1 participant