Skip to content

feat(engine): one heartbeat per camera per minute - #420

Open
MateoLostanlen wants to merge 1 commit into
developfrom
feat/heartbeat-per-camera
Open

MateoLostanlen wants to merge 1 commit into
developfrom
feat/heartbeat-per-camera

Conversation

@MateoLostanlen

@MateoLostanlen MateoLostanlen commented Sep 12, 2026

Copy link
Copy Markdown
Member
  • Heartbeats were sent on every pose of every loop, 8 per minute for a 4-pose camera. Fleet-wide that is 7.5 requests per second and 89% of the alert API traffic, for a liveness signal the platform only evaluates with a 30 minute threshold.
  • The engine now sends at most one heartbeat per camera per heartbeat_period (default 60 s), tracked per camera IP on a monotonic clock. Periodic image uploads and mask fetches are unchanged.
  • Cuts heartbeat traffic by roughly 8x with no API or platform change.

@MateoLostanlen
MateoLostanlen requested a review from fe51 September 12, 2026 10:22
@codecov

codecov Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.24%. Comparing base (2465419) to head (1e33d46).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #420      +/-   ##
===========================================
+ Coverage    79.11%   79.24%   +0.12%     
===========================================
  Files            6        6              
  Lines          838      843       +5     
===========================================
+ Hits           663      668       +5     
  Misses         175      175              
Flag Coverage Δ
unittests 79.24% <100.00%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant