Skip to content

Remove periodic daemon heartbeat Telegram notification#345

Merged
cipher813 merged 1 commit into
mainfrom
feat/daemon-heartbeat-offline-notification
Jul 9, 2026
Merged

Remove periodic daemon heartbeat Telegram notification#345
cipher813 merged 1 commit into
mainfrom
feat/daemon-heartbeat-offline-notification

Conversation

@cipher813

Copy link
Copy Markdown
Collaborator

Switches the daemon heartbeat from sending periodic online notifications (green heart every ~1hr) to relying on the existing surveillance Lambda for offline detection during trading hours.

What changed:

  • Removed the periodic Telegram send_daemon_status call for the heartbeat block in executor/daemon.py
  • Removed the _last_heartbeat / _HEARTBEAT_INTERVAL tracking (only used to throttle the Telegram notification)
  • The S3 heartbeat write (every ~60s poll tick via IntradaySnapshotWriter) is unchanged — the surveillance Lambda at alpha-engine-research/lambda/alerts_handler.py reads this and already fires a 🚨 DAEMON DOWN critical alert when staleness exceeds 180s during market hours

Kept:

  • Daemon start/crash/EOD stop/IB reconnect/trade failure lifecycle notifications
  • S3 heartbeat for surveillance Lambda offline detection

Summary:

  • Online → silence (the default healthy state)
  • Offline during trading hours → push notification via surveillance Lambda

@cipher813 cipher813 merged commit 5af7f8c into main Jul 9, 2026
2 checks passed
@cipher813 cipher813 deleted the feat/daemon-heartbeat-offline-notification branch July 9, 2026 19:37
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