[Feature] Fully-featured server stop functionality#138
Open
3manifold wants to merge 1 commit intohuggingface:mainfrom
Open
[Feature] Fully-featured server stop functionality#1383manifold wants to merge 1 commit intohuggingface:mainfrom
3manifold wants to merge 1 commit intohuggingface:mainfrom
Conversation
This was referenced Nov 12, 2024
|
I cherry-picked the commit on top of latest on main branch. It crashed unless I implemented the following function: |
even with the above, I then get coming from Edit: this seems like it could be related to wsl audio setup. Disabling systemd-timesyncd now I see but it still hangs (doesn't fully exit) |
Contributor
Author
|
@Uldiniad Thank you for your comment. There were several changes merged on the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This feature implements the server stop functionality during a
KeyboardInterruptin different scenarios.Although
pipeline_manager.stop()seems to be invoked ins2s_pipeline.pyduring aKeyboardInterrupt, it is observed that in practice stop functionality is unresponsive. Ideally, stop functionality should work in both of the following scenarios (currently not the case):start server -> stop serverstart server -> start client -> stop serverThe submitted implementation benefits the application in several aspects:
Tested for for both
--device cpuandcuda. Fixes #139 and fixes #140 .Logs
The logs below demonstrate the output of the server for both scenario 1 and scenario 2 after the fix was applied.
Scenario 1
Click to show log
Scenario 2
Click to show log