diff --git a/CHANGELOG.md b/CHANGELOG.md index 46a4082eb..4c4fc6831 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added new `handle_sigint` and `handle_sigterm` to `RunnerArguments`. This allows applications to know what settings they should use for the environment - they are running on. + they are running on. Also, added `pipeline_idle_timeout_secs` to be able to + control the `PipelineTask` idle timeout. - Added `processor` field to `ErrorFrame` to indicate `FrameProcessor` that generated the error. diff --git a/src/pipecat/runner/types.py b/src/pipecat/runner/types.py index 39c4b7009..1d4312e99 100644 --- a/src/pipecat/runner/types.py +++ b/src/pipecat/runner/types.py @@ -22,10 +22,12 @@ class RunnerArguments: handle_sigint: bool = field(init=False) handle_sigterm: bool = field(init=False) + pipeline_idle_timeout_secs: int = field(init=False) def __post_init__(self): self.handle_sigint = True self.handle_sigterm = False + self.pipeline_idle_timeout_secs = 300 @dataclass