Skip to content

[FROZEN][Jetty] Let a plugin finish when a Worker's async with block ends. - #277

Closed
moetemp wants to merge 14 commits into
moe/jetty/v3/J2-demos-outfrom
moe/jetty/v3/J3-worker-exit
Closed

moetemp wants to merge 14 commits into
moe/jetty/v3/J2-demos-outfrom
moe/jetty/v3/J3-worker-exit

Conversation

@moetemp

@moetemp moetemp commented Oct 18, 2026

Copy link
Copy Markdown
Owner

What changed?

This PR makes a Worker's async with block wait for each plugin's run_worker to return, so a plugin's work after the Worker stops, such as a flush, runs to its end. An error from that work raises from __aexit__, and a cancel of the caller comes back as itself.

Why?

The stream store plugin flushes its pending notifications when its Worker stops. #129 holds the same change against main and stays open.

How did you test it?

Link to a test plan if any -

  • Unit Tests
  • Staging
  • End to End Tests

@moetemp moetemp changed the title [Jetty] Let a plugin finish when a Worker's async with block ends. [FROZEN][Jetty] Let a plugin finish when a Worker's async with block ends. Oct 21, 2026
@moetemp

moetemp commented Oct 22, 2026

Copy link
Copy Markdown
Owner Author

Closed as unused. Jetty and Bridge are frozen, and the Brook v4 stack doesn't build on this PR. The branch stays, so this PR can be reopened.

@moetemp moetemp closed this Oct 22, 2026
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