Your n8n workflow stopped running and nothing turned red
The error workflow only fires when a run starts and fails. How to catch dead schedules, disabled webhooks and expired triggers with a silence watchdog.
Most n8n monitoring setups have one moving part: an error workflow that sends a message when a run fails. It's worth having, but it has a blind spot that causes some of the most painful incidents. It can only react to a run that started.
If a workflow stops running entirely, there's no failed execution, so there's nothing to react to. The dashboard stays green and the client notices first.
How workflows go quiet
These are the common ways a production workflow stops without producing a single error:
- The workflow was deactivated. Someone was debugging, an import replaced it, or it was unpublished during an edit and never re-activated.
- The schedule changed meaning. A timezone setting moved after a migration, or a cron expression was edited and now fires on a different day than you think.
- The webhook stopped receiving. The provider disabled your endpoint after repeated timeouts, the URL changed (domain, path, or test vs. production URL), or a firewall rule started blocking it.
- A polling trigger can't authenticate. An OAuth token expired or was revoked. Depending on the node and version, this may surface as a trigger error or simply as no new items.
- The upstream went quiet. The form, store or CRM stopped sending events, which is sometimes legitimate and sometimes a misconfiguration on their side.
In every case, the right signal is the same: this workflow normally runs every N minutes, and it hasn't.
The watchdog pattern
A silence watchdog is a separate scheduled workflow that checks the last start time of each important workflow against an expected rhythm.
- Write down the rhythm. For each workflow that matters, record its expected maximum silence. An hourly job might get 90 minutes, a nightly job 1,500 minutes (25 hours), and a webhook that normally receives traffic every day 1,500 minutes too.
- Read recent executions. The n8n Public API lists executions per workflow:
GET /api/v1/executions?workflowId=<id>&limit=100, authenticated with theX-N8N-API-KEYheader. Take the most recentstartedAt. - Compare and remember. If
now − lastStartedAtexceeds the limit (or there are no executions at all), the workflow is stale. Store that state, so you alert on the change rather than every 15 minutes. - Alert on transitions. Send one message when a workflow goes stale and one when it recovers. Repeat an open alert only every few hours.
The same pass can catch the opposite problem: bursts of failures. Count executions with status error or crashed in the last hour; three or more is usually worth a message even if each one alerted individually.
Picking the silence limit
Set the limit a little above the slowest normal gap, not the average one:
| Workflow rhythm | Suggested max silence |
|---|---|
| Every 5 minutes | 20 minutes |
| Hourly | 90 minutes |
| Daily at a fixed time | 25 hours (1,500 min) |
| Webhook with steady daily traffic | 25 hours |
| Webhook with bursty traffic | Don't watch silence; watch failure bursts only |
Too tight and you get false alarms on quiet Sundays; too loose and you learn about problems a day late. Start loose and tighten after a week of real data.
Details that bite
- Execution pruning. If your instance prunes execution data aggressively, a long-silence limit can exceed the history you keep. Keep at least as much history as your longest limit.
- Waiting executions. On some n8n versions the executions API doesn't return executions in the
waitingstate, so don't count them as proof of life. - Store state outside the workflow. n8n's documentation says workflow static data isn't saved during test runs and may be unreliable under high-frequency executions. A small database table is more dependable for "what did I alert on last time?".
- The watchdog needs watching. Give the watchdog itself an error workflow, and make sure its alert channel isn't the one that's broken.
A minimal version you can build today
A Schedule trigger every 15 minutes → a Code node holding your list of {workflowId, maxSilenceMinutes} → an HTTP Request node calling the executions endpoint per workflow → a Code node computing the stale and failing states → an IF node → your Slack or email node. Without stored state it will repeat alerts every run, which is noisy but already far better than silence.
The Reliable Automation Kit includes this pattern as a finished workflow with state stored in Postgres, transition-only alerts, recovery messages and tests. The free audit can't detect silence, because it reads definitions rather than runs, but it does flag workflows that have no error workflow at all, which is the other half of the problem.
Related
n8n 2.20: publish your sub-workflows and error workflow first
In n8n 2.20.8 a published workflow could not run an unpublished sub-workflow or error workflow. What we saw in testing, and an install order that avoids it.
The n8n error workflow, done properly: useful alerts without the spam
Build an n8n error workflow that tells you what broke and what to do, classifies errors, and mutes repeats so one expired token doesn't flood Slack.