Skip to content

Extract event stream processing from PluginManager - #35

Open
strohganoff wants to merge 3 commits into
mainfrom
refactor/event-stream-processing
Open

strohganoff wants to merge 3 commits into
mainfrom
refactor/event-stream-processing

Conversation

@strohganoff

Copy link
Copy Markdown
Owner

Extract EventStreamProcessor to read validated events concurrently and dispatch them sequentially. Separate the WebSocket transport from its event listener while keeping validation, handler selection, and injectable resolution in PluginManager.

The processor uses TaskGroup, with backports installed only on Python 3.10. Ordinary processing failures can reach callers as an ExceptionGroup. The manager and transport group ordinary runtime and cleanup failures that reach their respective boundaries. A follow-up will address independent worker cancellation, listener cleanup ownership, and abnormal WebSocket disconnects.

Validation: 203 tests passed locally on Python 3.10 and 3.11.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant