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

Fix error propagation for supervisor #5503

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

jmcphers
Copy link
Collaborator

@jmcphers jmcphers commented Nov 25, 2024

This change improves the error message for some fairly generic-looking errors like "HTTP request failed" that are occasionally reported when kernels fail to start.

The change may look like a no-op, but it isn't; because of the way JS async exception handling works, we need to explicitly await the async expression in order to catch exceptions. What was happening here was that exceptions thrown from tryStart() in this codepath were not getting handled in the try/catch block (despite being thrown from inside the block). Instead, they were thrown directly by start(), with the result that none of the code intended to marshal API errors to the UI layer was running to summarize the error.

Partial backport of #5490 for the 2024.11.1 branch.

@jmcphers jmcphers merged commit d82871d into prerelease/2024.11 Nov 26, 2024
3 checks passed
@jmcphers jmcphers deleted the bugfix/2024.11-supervisor-errors branch November 26, 2024 00:10
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants