Skip to content

Prevent deadlock when pipeline task is cancelled#4061

Draft
audricschiltknecht wants to merge 1 commit intopipecat-ai:mainfrom
audricschiltknecht:fix-canceled-call-progress
Draft

Prevent deadlock when pipeline task is cancelled#4061
audricschiltknecht wants to merge 1 commit intopipecat-ai:mainfrom
audricschiltknecht:fix-canceled-call-progress

Conversation

@audricschiltknecht
Copy link

Add logic of PipelineTask::_process_push_queue inside a try/except asyncio.CancelledError.
Try to cleanup the pipeline when it is cancelled.

Fixes #3929

@audricschiltknecht
Copy link
Author

As posted in discord, I'm not linking the fix here as it leaves lot of dangling tasks.

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.

Pipeline shutdown on sigint stuck when call in progress

1 participant