Skip to content

Conversation

@agoose77
Copy link

@agoose77 agoose77 commented Nov 13, 2025

This PR attempts to close #503 and fix #161 by cleaning up background tasks upon closure of the websocket. I'm not sure if this fits into the wider design space for resource management, but it does fix "hang on shutdown" on my system.

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch agoose77/jupyter-collaboration/fix-close-background-tasks

@agoose77 agoose77 added the bug Something isn't working label Nov 13, 2025
@davidbrochart
Copy link
Collaborator

That would prevent cleaning up the room that was launched here, right?

@agoose77
Copy link
Author

I don't think so? That is launched by asyncio's create_task, rather than the class helper.

@davidbrochart
Copy link
Collaborator

Ah right.
So it looks like you are also cancelling the WebSocket server (launched here), while you only want to cancel this particular handler)?

@krassowski
Copy link
Member

I edited description as I closed #503 as a duplicate of #161

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

Labels

bug Something isn't working

Projects

Status: No status

3 participants