Merge pull request #982 from pipecat-ai/aleix/pipelinetask-cleanup-sink

pipeline(task): cleanup Sink processor
This commit is contained in:
Aleix Conchillo Flaqué
2025-01-14 09:14:03 -08:00
committed by GitHub
2 changed files with 20 additions and 8 deletions

View File

@@ -180,6 +180,7 @@ class PipelineTask:
if should_cleanup:
await self._source.cleanup()
await self._pipeline.cleanup()
await self._sink.cleanup()
# We just enqueue None to terminate the task gracefully.
self._process_up_task.cancel()
await self._process_up_task