Merge pull request #4267 from pipecat-ai/ac/fix-observer-cleanup-ordering

Fix observer cleanup ordering to stop proxy tasks before closing resources
This commit is contained in:
Aleix Conchillo Flaqué
2026-04-10 09:05:33 -07:00
committed by GitHub
4 changed files with 12 additions and 46 deletions

1
changelog/4267.fixed.md Normal file
View File

@@ -0,0 +1 @@
- Fixed `ValueError: write to closed file` during pipeline shutdown when observers were active. Observer proxy tasks are now cancelled before observer resources are cleaned up.

View File

@@ -0,0 +1 @@
- ⚠️ Removed deprecated `PIPECAT_OBSERVER_FILES` environment variable support. Use `PIPECAT_SETUP_FILES` instead.