Topic 4 of 5 · 4 min read
Catching silent failures in scheduled tasks
Goal: Find the silent failure in a month of scheduled-run logs and propose a heartbeat check that would have caught it.
The worst failure of a scheduled task is the one that makes no noise, so every task you depend on needs a check that expects it to arrive and tells you when it does not. A crash that shows an error gets fixed. A brief that quietly stops, or keeps arriving with the wrong content, can run for weeks before someone asks "did that still come?"
Check yourself · 1 of 3
What is a heartbeat check for a scheduled task?
Why it matters
Scheduled work trains you to stop looking. That is the point, and it is also the risk. Three kinds of silent failure are common.
- The run stops. A login expires, a connector loses access, a plan limit is reached, or the task is paused after repeated failures. Nothing arrives, and no one notices an absence.
- The source moves. A page changes layout, a feed is renamed or a folder is reorganised. The task still runs, finds nothing, and writes a confident brief about nothing, or reuses old text.
- The output drifts. The vendor updates the model, or you edit the prompt, and the tone, length or accuracy shifts. Nobody decided to change it.
The heartbeat idea
A heartbeat check flips the logic. Instead of waiting for an error, you expect a signal on a schedule and raise a flag when it is missing. Services such as Healthchecks.io are built for this: the job pings a URL when it finishes, and if the ping does not arrive on time, you get a message. You can do the same without a service. A weekly brief that ends with "Run completed, 5 items, 3 sources read" lets you spot a missing or short one at a glance. A second, tiny scheduled task that checks the log and alerts you if the last run is older than expected works too.
A maintenance routine that fits in ten minutes a month
- Read the run history. Most tools show past runs and their status. Power Automate, for example, lists each run and its error. Look for gaps, repeated failures and runs that finished but produced an empty result.
- Check the counts. How many items, sources and words did it produce? A sudden drop to zero or a sudden doubling is the signal.
- Compare with the source. Open the source and confirm that the latest item in it appears in the latest brief.
- Note changes. Write down when you edit the prompt, change a source or notice a model update, with the date. This makes drift explainable.
- Name an owner and a backup. If you are away, someone else should know it exists and how to pause it.
Before and after
Weak: a weekly summary task with no status line. It stopped after a password change in March. Someone asked about it in May.
Better: the same task ends each run with "Sources read: 3 of 3. Items: 5." A second task checks every Monday at 10:00 and messages you if no brief arrived since the previous Monday.
What goes wrong
- Trusting a green status. "Run succeeded" means the steps ran, not that the content was right.
- No owner. The person who set it up leaves, and no one knows it exists.
- Alerting on everything. A heartbeat that fires for harmless delays gets muted, and then it fails silently as well.
Examples
The brief about nothing
A weekly competitor brief kept arriving. In week 9 it listed three items, all repeats. The vendor had moved its news page to a new address in week 6, and the old address returned nothing. The task treated 'nothing found' as a normal result. A status line reading 'Sources read: 2 of 3' would have shown it in week 6.
A heartbeat with no service
Every Monday at 10:00 a second task looks for a brief dated within the last 7 days. If none exists, it sends a one-line message: 'No weekly brief since the 3rd.' The check costs almost nothing and catches expired logins, paused tasks and plan limits.
Key points
- Silent failures come in three kinds: the run stops, the source moves, or the output drifts.
- A heartbeat check expects a signal on a schedule and raises a flag when it is missing.
- A status line at the end of each run, such as sources read and items produced, makes a bad run visible at a glance.
- A 'success' status means the steps ran, not that the content is right, so compare the latest output with its source.
- Name an owner and a backup so a task does not outlive the person who knew about it.
Common mistakes
- Treating a 'run succeeded' status as proof that the content was correct.
- Writing no status line, so an empty or partial run looks the same as a good one.
- Never recording prompt or source edits, then being unable to explain why the output changed.
- Leaving a task with a single owner and no one else who knows how to pause it.
Check yourself · 2 of 3
A weekly brief still arrives and the run status says 'succeeded', but it has listed the same three items for a month. What is the most likely cause?
Check yourself · 3 of 3
You want to notice quickly when a scheduled brief changes in length or drops sources. Which addition helps most?
Practice items, not counted towards your mastery.
Start here
- Scheduled tasks in ChatGPT (OpenAI Help) (opens in a new tab)DocsFree
How to create, edit and pause a task that runs a prompt on a schedule, and what it can and cannot do.
- Introducing ChatGPT Pulse (OpenAI) (opens in a new tab)ArticleFree
An example of a proactive daily brief that works overnight, and how it asks you for feedback.
- Run a cloud flow on a schedule in Power Automate (opens in a new tab)DocsFree
Setting a recurrence in a workflow tool, including start time, time zone and frequency.
More for this topic
- Monitoring cron jobs (Healthchecks.io) (opens in a new tab)ArticleFree
Why a job that silently stops needs a check that expects it, and how to wire one in.
- Troubleshoot and fix flow failures (Power Automate) (opens in a new tab)DocsFree
Where a workflow tool shows failed runs and how to read the error before fixing it.