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

Stop the ASR pipeline if the task is deleted #204

Open
greenw0lf opened this issue Jan 28, 2025 · 0 comments
Open

Stop the ASR pipeline if the task is deleted #204

greenw0lf opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@greenw0lf
Copy link
Collaborator

Currently, if a task is deleted and that task is the same as the current one being processed, the ASR pipeline will keep processing until it is finished or errors occur. Therefore, the pipeline should be interrupted whenever the API requests that the current task be deleted.

It is not trivial to implement. One way to do this is to use a global variable that is checked after every step of the ASR pipeline (or even during one of the steps, e.g. transcribing since it consumes the most time). Other options I looked at involved some threading, but the code examples there involve a loop in the method that is running on the thread, which is not applicable to our ASR pipeline.

@greenw0lf greenw0lf added the bug Something isn't working label Jan 28, 2025
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
None yet
Development

No branches or pull requests

1 participant