pipeline(task): cleanup Sink processor

Fixes #953
This commit is contained in:
Aleix Conchillo Flaqué
2025-01-13 13:27:04 -08:00
parent 3cd2b90177
commit 4c8fcb2cfc
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