mars
MARS-347
Add unconditional liveness heartbeats to send-weekly-kpi + support-tickets-digest cron routes (watchdog-coverage prerequisite)
Backlog low
unassigned
Questions
No questions.
Activity
-
Watchdog-coverage prereq (coder-flagged during MARS-199). The MARS-199 cron-watchdog (pg_cron job 17) gap-checks ux-pain (8d) + error-digest (3d via the error-digest-ran row). It CANNOT cover the other two crons: send-weekly-kpi logs only on failure (weekly-kpi-cron-failed), support-tickets-digest logs only when it sends (support-ticket-digest-sent). No unconditional 'ran' row => watchdog can't distinguish 'ran, nothing to do' from 'never fired' => extending the gap-check would false-page on quiet weeks. Scope: add an unconditional liveness logEvent at the TOP of each route's successful run (mirror error-digest's action='error-digest-ran' info/admin row), action e.g. 'weekly-kpi-ran'/'support-digest-ran'. Two-part, sequenced: (1) coder adds heartbeats [this WI, app]; (2) db-mars extends watchdog job 17 to gap-check those two [follow-on db WI]. Confirmed by PM during MARS-199: file separately, do not bolt onto MARS-199.
chore
7w ago by wi-cli-venus
6w ago