Picture a nightly summarisation job that runs for days against an expired credential. Every run "succeeds" because the tool call returns an error string, the model writes a graceful paragraph explaining that no data is available, and the job exits zero. The first person to notice is a customer asking why their weekly digest has been empty since the start of the month.

Interactive agents have a user watching them. Scheduled ones have nobody, and they inherit none of the reflexes that come with someone staring at a screen.

Recurring runs fail in their own particular way

Two failure modes dominate, and neither raises an exception.

The first is the silent no-op. A degraded run still produces output, because producing plausible output under bad inputs is precisely what these models are good at. Exit codes are therefore useless as a health signal. Alert on outcomes instead: rows written, records touched, tokens spent, tools called. A summarisation job that made zero tool calls last night is broken regardless of what it returned. Tool failures need sorting as well. An argument error can go back to the model to correct, but an authentication failure should fail the run, so an expired credential is caught on the first night.

The second is the unsafe repeat. A run that hangs past its window overlaps the next one, or a catch-up mechanism fires four missed executions at once. Recurring jobs need an overlap policy, a decision about whether missed windows are skipped or replayed, and the same idempotency discipline as anything else that acts.

Carry one trace ID through the whole run

A single agent run spans a scheduler trigger, a job record, several model calls, a handful of tool invocations, and the artifacts it leaves behind. If those live in separate systems with separate identifiers, support cannot answer a complaint and engineering cannot debug the report.

Propagate one correlation ID through all of it, and store it on the artifacts too. Across service calls the W3C Trace Context traceparent header carries it; across the queue it has to ride on the job record. The test is whether, given a user's message about something that went wrong yesterday, somebody can reach the full timeline in a couple of minutes without writing a query. If not, every incident starts with an archaeology phase.

Release it like anything else that can hurt someone

Prompt edits and tool changes reach production far more casually than schema migrations do, and they can be equally destructive. Give them the same treatment: an eval suite that gates the release, a canary on a slice of traffic, a flag that reverts without a deploy, and a rollback path someone has actually walked. For a nightly job the canary costs time, since it needs at least one full cycle on its slice before you widen it.

Then write the runbook before you need it. Who gets paged when a scheduled job fails three times. How to pause a schedule. How to safely replay a run. Two pages, written on a calm afternoon, is the difference between a contained incident and a long night.

Pull last week's scheduled runs and count how many did work and how many reported success while doing nothing. Then name who would have been paged if all of them had done nothing. If nobody would, write that alert first.

About this explainer

Format
Explainer
Level
Practitioner
Read
2 min read
Published
Aug 5, 2026

Short mental models: one idea, why it matters, what to do about it.

Checklist · · 12 checks

RAG production-readiness checklist

Twelve checks to pass before a retrieval system answers a real user. Tick them locally; progress stays in your browser.