Compare commits

...
Author SHA1 Message Date
thunderwolfandGitHub c21001efd7 Merge fa116949ce into 48aaafba3c 2026-07-16 22:42:22 +02:00
thunderwolf fa116949ce Publish segment end time for valid recording segment updates
The record watchdog compares latest_valid_segment_time against now() with
the record_stale_threshold. Publishing the segment start time means the
newest validated timestamp is already ~2x segment duration old in healthy
steady state (own duration + next segment recording + maintainer latency),
leaving little margin before a working ffmpeg record process is restarted.
Publish the end time so staleness measures the actual age of the newest
validated video data.
2026-07-07 22:27:14 -05:00
+4 -1
View File
@@ -383,8 +383,11 @@ class RecordingMaintainer(threading.Thread):
return None
# this segment has a valid duration and has video data, so publish an update
# publish the segment end time so the watchdog measures the age of the
# newest validated video data; the start time is already ~2x segment
# duration old by the time the next segment finishes and is validated
self.recordings_publisher.publish(
(camera, start_time.timestamp(), cache_path),
(camera, end_time.timestamp(), cache_path),
RecordingsDataTypeEnum.valid.value,
)