Skip to content

Conversation

@ncoghlan
Copy link
Collaborator

In preparation for migrating the async API over to using the AsyncWebsocketHandler API (instead of using the httpx-ws instance API directly), rework the task scheduling so the websocket handlers run inside one task group per client.

Since the task manager's additional tasks group will own the handlers, it will no longer matter exactly which client coroutine triggers setting up the connection (once the async API migrates to the new imlementation interface).

CI lock file updates are due to refactoring eliminating the dependency on the "exceptiongroups" project.

In preparation for migrating the async API over to using
the AsyncWebsocketHandler API (instead of using the httpx-ws
instance API directly), rework the task scheduling so the
websocket handlers run inside one task group per client.

Since the task manager's additional tasks group will own the
handlers, it will no longer matter exactly which client coroutine
triggers setting up the connection (once the async API migrates
to the new imlementation interface).

CI lock file updates are due to refactoring eliminating the
dependency on the "exceptiongroups" project.
@github-actions github-actions bot added the CLA signed Indicates that all contributors have signed label Apr 17, 2025
@ncoghlan
Copy link
Collaborator Author

Websocket shutdown workaround is due to frankie567/httpx-ws#107

@ncoghlan ncoghlan merged commit 1282579 into main Apr 17, 2025
10 checks passed
@ncoghlan ncoghlan deleted the websocket-refactoring-part-3 branch April 17, 2025 17:10
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

CLA signed Indicates that all contributors have signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants