Keeping Automations Running When No One Is Watching
An automation earns its keep when no one is watching. That is also when it breaks.
The worst failure is not a crash. It is a quiet stop. You think it is running, so you stop checking. Days later you find it did nothing.
I built a job-alert app where a browser extension checks saved searches on a job marketplace on a timer and sends new jobs to the app. One morning the internet dropped at 7:00. When it came back, the checks did not. They stayed paused all day.
A review of that day found more:
- a false “checks stopped” alarm every round;
- a timer that could die without a sound;
- errors at night, when no one could act on them;
- raw technical text like “Failed to fetch”;
- advice to reload, when reloading fixed nothing;
- a log that kept only about 3 hours of history.
The rule I set
Fix itself when it can. Tell the person only when they must act, in plain words, with the one fix that works.
What changed
The timer cannot die. Before each run, a backup alarm is set for 5 minutes later. The end of the run replaces it. If the browser kills the run halfway, the backup fires. No reload needed.
Every call has a time limit. A call to the app that hangs for 20 seconds counts as a normal failure: logged, and the next alarm set.
“Stopped” means a missed wake-up. Each run reports when it will wake next. The alarm only shows if that time passes by 5 minutes. A quiet hour is not a stop.
No internet, no noise. Offline, the check skips quietly and tries again each minute. Outside the user’s working hours it does not call the app at all, so no red badge at night.
Plain words. “Failed to fetch” became “Can’t reach the app, retrying every minute.”
Errors have names. Offline, app unreachable, signed out of the app, signed out of the marketplace, bot check, page not answering, search not recognised. The message and the fix follow the name, not a guess from raw error text.
History survives. The same skip in a row becomes one line with a count: “skipped ×42, 04:17–05:00”. The local log now covers days, not 3 hours.
One button for support. The extension keeps its last 50 errors. A “Send diagnostics” button sends them to the admin page.
The next stop
Later, the checks stopped for 25 minutes. The logs showed what happened: one refused call made the extension throw away its sign-in pass, so every call after it failed.
The fix: on a refused call, the extension now asks the app if its pass is still good. It drops the pass only on a clear no. Otherwise it retries every minute.
Five questions for your automation
- If it dies halfway, does it wake up by itself?
- Does every outside call have a time limit?
- Does “stopped” mean a missed run, or just a quiet hour?
- Does it tell you only when you must act, in plain words?
- Do the logs survive a long outage?
You don’t need to watch it. I build your automation to fix itself, and to tell you only when you have to act, in one plain sentence. How I find the cause when it does stop: Troubleshooting a live app.
The short version
A good automation fixes what it can and speaks up only when a person must act. A quiet stop is the bug to design out first.
What runs on its own in your business today, and how would you know it stopped?
The core of it, in a Manifest V3 Chrome extension.
Set the backup alarm first
Manifest V3 service workers can be stopped at any time. So the backup wake-up is set before any work, and a crash can never leave the extension without one:
export function onJobAlertAlarm(alarm) {
if (alarm.name !== JOB_ALERT_ALARM) return;
(async () => {
try {
await scheduleJobAlertAlarm(FALLBACK_WAKE_MINUTES); // 5
const result = await runJobAlertChecksAlone();
// ...the end of the run sets the real next alarm
A hard time limit on every call
const APP_FETCH_TIMEOUT_MS = 20_000;
response = await fetch(url, { ...init, headers, signal: AbortSignal.timeout(APP_FETCH_TIMEOUT_MS) });
Three things that surprised me
- “No run for 15 minutes” is a bad alarm. A quiet schedule looks the same as a dead one. Send the planned wake-up time with each run, and alarm on a missed wake-up.
- One 401 is not proof of sign-out. Ask the server before throwing a credential away.
- Logs die first in an outage. Collapse repeats into one row with a count, or a cap of 200 lines covers only a few hours.
More Posts
All posts
November 25, 2026
Why Your App Went Offline on Vercel's Free Plan (and How to Stay Under the Limits)
Vercel's free plan pauses every site on the account when one monthly limit runs out. What the limits mean in plain words, what uses them up, and the fixes, from a real case.
November 24, 2026
Why Your Project Starts With a Small Paid Step: Requirements and an Estimate Before the Build
A price given before the work is measured is a guess, and someone pays for it later. What a small paid first step gets you: written decisions, a cost range and a time range, and the choice to stop there.