Separating Missed-Cron Alerts from Run Metrics for Marketplace Agent Recovery
The article argues that a heartbeat service should detect a scheduled marketplace agent that never completes, while a custom metrics API records what happened during each run. It stresses that a successful metrics write only shows an observation arrived, not that the next scheduled run occurred or that a message reached its recipient. The author recommends one logical identity per scheduled execution, with retries tracked as attempts under the original run so repeated uploads are not mistaken for new completed jobs. It also advises keeping total job duration separate from individual model-call latency, treating missing cost data as unknown rather than zero, and using a duplicate-protection mechanism for user-facing actions such as OTP messages, since telemetry identifiers alone do not provide it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in