introduce heartbeat frames

This commit is contained in:
Aleix Conchillo Flaqué
2025-01-16 18:56:01 -08:00
parent 3e178fd46f
commit ff8aa68942
3 changed files with 165 additions and 36 deletions

View File

@@ -424,6 +424,16 @@ class FatalErrorFrame(ErrorFrame):
fatal: bool = field(default=True, init=False)
@dataclass
class HeartbeatFrame(SystemFrame):
"""This frame is used by the pipeline task as a mechanism to know if the
pipeline is running properly.
"""
timestamp: int
@dataclass
class EndTaskFrame(SystemFrame):
"""This is used to notify the pipeline task that the pipeline should be