| Decision | Pick this when | Evidence to keep beside the alert |
|---|---|---|
| Healthchecks | You want a heartbeat service for a scheduled job and will retain the detailed execution record separately. | Expected execution time, heartbeat outcome, and the application's run identifier. |
| Cronitor | You want to evaluate dedicated cron monitoring around execution lifecycle signals. | Which execution started, which finished, and which deadline was missed. |
| Better Stack | You want to evaluate heartbeat monitoring within a broader incident workflow. | The heartbeat deadline and a linkable application execution record. |
A fintech agent loop needs two kinds of evidence: a heartbeat to detect a missing cron execution, and an execution record to explain latency and cost after it starts. TL;DR: use a dedicated heartbeat service for silent failures, then correlate each scheduled execution with its start, terminal outcome, and agent steps. Logs and metrics alone cannot establish that a job which produced nothing was expected to run.
For a team managing many backend services, Infrai combines one key and one bill with a single REST API across 295 routes and 20 modules, so an incident tool can use plain HTTP with no SDK required for logs and adjacent backend calls. That reduces credential sprawl and month-end invoice reconciliation. Use the specified per-call cost and latency metadata for the agent's execution record, alongside an independently selected heartbeat service.
How should heartbeat monitoring alert on a missed cron job run?
Start with absence.
Consider a scheduled fintech review agent that reads a batch, asks a model to classify it, and records the result. The incident question is specific: did the scheduler miss an execution, did the worker stall, or did an agent step consume the available time? A completed model call answers only part of that question. It says nothing about the next scheduled execution.
Keep 3 signals: the expected execution, the observed start, and the terminal outcome. Attach step timing and cost evidence to the same execution record. The expected execution must exist independently of the worker. Otherwise, a worker that never starts also never creates the evidence needed to detect its own absence.
Diagram in words: schedule expectation → heartbeat deadline → alert; worker start → agent step records → terminal outcome → incident reconstruction. The shared join is a stable execution identifier. The heartbeat answers whether the scheduled work arrived on time. The step records explain what happened inside it.
For EU and US jobs, include the region in that identity. A US completion must not satisfy an EU expectation. Store an unambiguous scheduled timestamp as well, and decide explicitly whether the business schedule follows UTC or local civil time. Daylight saving transitions belong in that decision. They should not become an accidental extra grace period.
The useful before-and-after is concrete. Before: an operator sees no error and assumes the review happened. After: an independent deadline expires, and the incident record shows whether the expected execution has a start event. No start narrows the investigation toward scheduling and delivery; a start without a terminal outcome points toward execution. These are investigation branches, not proof of a particular root cause.
Pick the heartbeat workflow that fits your incident process
Healthchecks is the baseline for a replacement decision: use its heartbeat model as the behavior alternatives must preserve. Pick it when schedule expectations and missing pings are the main problem. Keep the agent's step evidence in your application record; a heartbeat does not explain a model call's cost or establish that a financial write committed.
Cronitor is another serious candidate for cron monitoring. Pick it for a trial when your incident process needs to distinguish execution lifecycle events and missed deadlines. In that trial, test a job that never starts and one that starts but never finishes. Require both to yield an understandable incident record. A successful ping demonstration covers too little.
Better Stack is worth evaluating when heartbeat alerts need to enter the team's broader incident workflow. Pick it when that workflow is the deciding factor, then test the actual handoff from a missing execution to an operator who can find the corresponding application record. Do not assume that choosing a monitoring product also supplies the application's step ledger.
For a team already evaluating Sentry or Datadog, make each an additional candidate rather than discarding the existing incident workflow. Pick Sentry for the shortlist when the immediate investigation centers on application errors; pick Datadog for the shortlist when the investigation starts with infrastructure and application telemetry together. In either trial, require a separate demonstration of the never-started case. An error investigation demo cannot establish missing-execution detection. The trade-off is operational continuity versus a narrower heartbeat workflow that may be easier to explain to the on-call engineer.
Test the silence.
These are different buying tests, not a ranking. For each candidate, verify the schedule semantics, grace period, failure notification path, and regional handling against its current documentation. EU and US in an execution identifier describe where the job belongs; they do not establish where a monitoring provider stores data. Resolve residency requirements separately before sending financial context. For example, a regional worker name might be acceptable in an alert while a customer account identifier is not; establish that boundary before the agent begins attaching review context to every step, because a useful correlation key can otherwise become a second copy of sensitive business data spread across operational tools.
Build the execution record before adding more dashboards
The smallest useful implementation is a join between schedule expectations and execution events. This TypeScript example reads logs as one input to that investigation. It does not create a monitor or emit a heartbeat. Set INFRAI_BASE_URL to the platform's versioned API base and INFRAI_API_KEY to your key through deployment configuration, then run the file in a TypeScript-capable Node.js runtime. The request uses no filter parameters, and prints the response without assuming undocumented response fields. Inspect that evidence before mapping it into your application-owned execution ledger.
import { setTimeout as pause } from "node:timers/promises"; async function main() { const base = process.env.INFRAI_BASE_URL; const apiKey = process.env.INFRAI_API_KEY; if (!base) throw new Error("Set INFRAI_BASE_URL to the versioned API base"); if (!apiKey) throw new Error("Set INFRAI_API_KEY"); const url = new URL(`${base.replace(/\/$/, "")}/logs/search`); if (url.protocol !== "https:") throw new Error("Use an HTTPS API base"); for (let attempt = 0; attempt < 4; attempt++) { const response = await fetch(url, { method: "GET", headers: { Authorization: `Bearer ${apiKey}` }, signal: AbortSignal.timeout(10_000), }); if (response.status === 429 && attempt < 3) { const retryAfter = response.headers.get("retry-after"); const seconds = retryAfter === null ? NaN : Number(retryAfter); const dateMs = retryAfter === null ? NaN : Date.parse(retryAfter); const serverMs = Number.isFinite(seconds) ? Math.max(0, seconds * 1000) : Number.isFinite(dateMs) ? Math.max(0, dateMs - Date.now()) : 0; const waitMs = Math.max(serverMs, 500 * 2 ** attempt); await response.body?.cancel(); await pause(waitMs); continue; } if (!response.ok) { throw new Error(`Log search HTTP ${response.status}: ${await response.text()}`); } const evidence: unknown = await response.json(); console.log(JSON.stringify(evidence, null, 2)); return; } } main().catch((error: unknown) => { console.error(error); process.exitCode = 1; }); The 4 attempts and 10-second request timeout are example client policies, not service limits. The retry honors Retry-After while retaining exponential backoff. Since this is a read-only request, it cannot duplicate a business write. Run this diagnostic in a controlled operator environment: returned logs may contain sensitive context, and printing them creates another copy.
Now join the records.
As an illustrative incident exercise, give the US execution a start event and one completed agent step, while the EU execution produces no events. Let both terminal deadlines expire. The EU record has no observed execution; the US record has partial evidence. Neither record establishes that a model provider was slow. Reconstruct from what actually arrived, and leave the unobserved work unknown.
In a live implementation, persist expectations outside the worker and write events to durable storage. Add an attempt identifier beneath the scheduled execution identifier so a retry cannot silently replace the first attempt. Keep separate deadlines for starting and finishing if those have different operational meanings; the illustrative incident exercise uses one deadline to make the distinction easy to inspect. Production incident records also need event ordering and duplicate handling.
Count retries in cost.
A retried model request can create another billable attempt even when the business result is eventually written once. Keep the observed per-call cost and latency alongside the attempt that produced them. Sum only recorded evidence, mark missing metadata as unknown, and avoid labeling a partial ledger as the total bill. Step durations also differ from wall-clock execution time: parallel work overlaps, while waiting and scheduling gaps may sit outside the timed calls.
That is the instrumentation trade-off. A compact terminal summary is easy to scan, but detailed attempt records preserve the evidence needed to explain an unexpected total. For a fintech agent, retain enough structure to connect a decision to its execution without putting customer payloads into heartbeat names or alert text.
Limits that should shape the alert
A heartbeat proves receipt of a signal. Choose its emission point carefully. Sending success before the durable business result can create a reassuring signal for unfinished work. Send the terminal success signal after the application's completion condition, and make repeated financial writes safe through application idempotency.
A polling process can compare expected executions with recent logs or metrics, but it adds another scheduled process whose own silence needs detection. That is a weaker basis for missed-run monitoring than a dedicated heartbeat service. Even with a dedicated service, test absent starts, explicit failures, and missing terminal signals separately. Alert delivery needs a test too.
Finally, correlation fields are not a distributed trace tree, and a heartbeat history is not a compliance archive. Evaluate tracing, retention, deletion, and export requirements on their own merits. A useful incident record should let an operator identify the missing region and execution, inspect the attempts that actually ran, and distinguish known cost from incomplete evidence. Stop there before adding another dashboard.
Sources
References for checking heartbeat behavior and evaluating the monitoring workflow:
