Skip to content

fix(edge): note when stopped so we can kill process in early init#313

Merged
chee merged 1 commit intomainfrom
stopstartstop
Jun 25, 2025
Merged

fix(edge): note when stopped so we can kill process in early init#313
chee merged 1 commit intomainfrom
stopstartstop

Conversation

@chee
Copy link
Contributor

@chee chee commented Jun 24, 2025

This is to address the edge case surfaced by the Astro integration PR wherein the edge function Deno server won't be closed if the .stop() comes in very soon after the init.

The issue is that .stop() can be called before denoBridge.runInBackground has finished resolving (but before we've waited for the server to start), and in that case we will never know it needed to be stopped.

This is to address the edge case surfaced by the (Astro integration
PR)[withastro/astro#13768] wherein the edge function
Deno server won't be closed if the .stop() comes in very soon after the init.

The issue is that .stop() can be called before denoBridge.runInBackground has
finished resolving (but before we've waited for the server to start), and in
that case we will never know it needed to be stopped.
@chee chee requested a review from a team as a code owner June 24, 2025 20:05
@chee chee merged commit 3062d40 into main Jun 25, 2025
9 of 10 checks passed
@chee chee deleted the stopstartstop branch June 25, 2025 09:45
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.

2 participants