Skip to content

fix: improve stability - #406

Merged
nyannyacha merged 3 commits into
supabase:mainfrom
nyannyacha:fix-stability-240906
Sep 10, 2024
Merged

fix: improve stability#406
nyannyacha merged 3 commits into
supabase:mainfrom
nyannyacha:fix-stability-240906

Conversation

@nyannyacha

@nyannyacha nyannyacha commented Sep 6, 2024

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Bug fix, Enhancement

Description

  • sb_graph: Don't propagate unnecessary panic
  • base: Give the runtime an explicit chance to handle an interruption request by the supervisor (Please see the commit description for the detail)

…ion request by the supervisor

DESCRIPTION:

If we cancel the `termination_request_token` token too early, `DenoRuntime`
loses the chance to handle the interruption and may not provide a value for
`isolate_memory_usage_rx`, causing the task that called `create_supervisor` to
deadlock.

`DenoRuntime::run` is returned by canceling the `termination_request_token`
token, so the user will see the worker terminated as normal, but it will be
reported as `EventLoopCompleted`.
@nyannyacha
nyannyacha merged commit 50eb636 into supabase:main Sep 10, 2024
@nyannyacha
nyannyacha deleted the fix-stability-240906 branch September 10, 2024 07:12
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.58.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants