Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I lost half a day to an n8n workflow that was "working." It never ran.

Описание и применение

Скрипт проверки живучести обнаруживает, когда n8n‑workflow отключён или удалён, и отправляет одно письмо при изменении состояния, предотвращая шум от постоянных оповещений.

Задача

A scheduled n8n workflow stopped running silently after being unpublished, causing missed executions without any error alerts.

Результат

The liveness check script reliably detects when a workflow is unpublished or missing, sending a single email on state change and avoiding alert fatigue.

Рабочий процесс

  • 1. Deploy n8n 2.43.6 with PostgreSQL 16 on EC2. 2. Import and publish a one‑minute scheduled workflow. 3. Unpublish the workflow to simulate a silent failure. 4. Run a Python script every 15 minutes that: a. GET /workflows to verify existence and active flag. b. GET /executions?workflowId=<id>&limit=1 to check last run. c. GET /executions?workflowId=<id>&status=success&limit=1 to confirm recent success. 5. Compare current state with previous state; if changed, email notification. 6. Re‑publish the workflow and observe the script detect the change and send a recovery email.

Доказательства

I did not want to take this on faith, so I ran it.

Источник

Zero. Two and a half minutes, at least two scheduled runs missed, and the execution count did not move by one.

Источник

A separate scheduled workflow, every 15 minutes, reads the n8n public API and answers four questions for each workflow on a watch list.

Источник

Only email on change.

Источник

  • Дата записи: 2026-11-03T15:14:16.129Z