RunnerArguments: add pipeline_idle_timeout_secs
This commit is contained in:
@@ -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
|
- Added new `handle_sigint` and `handle_sigterm` to `RunnerArguments`. This
|
||||||
allows applications to know what settings they should use for the environment
|
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
|
- Added `processor` field to `ErrorFrame` to indicate `FrameProcessor` that
|
||||||
generated the error.
|
generated the error.
|
||||||
|
|||||||
@@ -22,10 +22,12 @@ class RunnerArguments:
|
|||||||
|
|
||||||
handle_sigint: bool = field(init=False)
|
handle_sigint: bool = field(init=False)
|
||||||
handle_sigterm: bool = field(init=False)
|
handle_sigterm: bool = field(init=False)
|
||||||
|
pipeline_idle_timeout_secs: int = field(init=False)
|
||||||
|
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
self.handle_sigint = True
|
self.handle_sigint = True
|
||||||
self.handle_sigterm = False
|
self.handle_sigterm = False
|
||||||
|
self.pipeline_idle_timeout_secs = 300
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|||||||
Reference in New Issue
Block a user