Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor socket.py to handle task interruption gracefully #906

Closed
wants to merge 2 commits into from

Conversation

jpolvto
Copy link
Contributor

@jpolvto jpolvto commented Apr 14, 2024

When the user presses the stop button, the backend raises an InterruptedError. In my mind this should be logged instead. Let me know if I've missed something!

@jpolvto
Copy link
Contributor Author

jpolvto commented Apr 14, 2024

Will fix the test.

@willydouhard
Copy link
Collaborator

Then it won't actually stop the task I believe. Currently it is the error that will interrupt an async task

@jpolvto
Copy link
Contributor Author

jpolvto commented Apr 15, 2024

How would you approach this? I've tested this locally for our chainlit app, and it seemed to work, so I'm a bit surprised.

@jpolvto jpolvto marked this pull request as draft April 18, 2024 09:48
@jpolvto
Copy link
Contributor Author

jpolvto commented May 17, 2024

This is resolved in the latest version, I'll close the pull request

@jpolvto jpolvto closed this May 17, 2024
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.

None yet

2 participants