AutoVerse Workflow Controller icon

AutoVerse Workflow Controller

Enterprise workflow orchestration, execution control, and monitoring for n8n

Monitoring → Consecutive Failure Detection

AI-generated

Summary

Counts the current streak of consecutive failed executions for each selected workflow (newest first) via the n8n API and flags workflows whose streak meets the threshold. Read-only; returns one item per input item.

Inputs

  • Workflow Selection — How to pick workflows: searchable list (single), multiple from list, current workflow (must be saved), or by URL/ID (comma-separated allowed). Default is list.
  • Workflow Name or ID (required) — Single workflow, shown when selection mode is list.
  • Workflow Names or IDs — Multiple workflows, shown in 'multiple' mode. At least one workflow must be resolved or the node errors.
  • Workflow URL or IDs — Workflow URLs, IDs, or comma-separated IDs, shown in manual mode.
  • Execution Status — Optional status filter (Any, Error, Running, Success, Waiting) applied when fetching executions. Caution: filtering to Error makes every fetched execution a failure, so the streak simply equals the number of fetched errors; leave as Any for a true consecutive count.
  • Consecutive Failure Threshold — Streak length (1–50, default 3) at which a workflow is marked breached.
  • Max Pages — Maximum pages of executions (100 per page, 1–50, default 5) fetched per workflow, which caps how far back the streak can be counted.

Output shape

A single item with json: generatedAt (ISO timestamp), threshold, and workflows[] containing workflowId, workflowName, consecutiveFailures, and breached (true when consecutiveFailures >= threshold).

Failure statuses are error, crashed, and failed. Executions are sorted by startedAt, newest first, and the count stops at the first non-failure, including running or waiting runs. The streak is limited to the fetched window (Max Pages). With continue-on-fail enabled, errors yield an item with an error message instead. Requires n8n API credentials.

Examples

Example 1: Alert when a critical workflow fails 3 times in a row

Selection: From Searchable List; pick the workflow; Execution Status: Any; Threshold: 3. Follow with an IF node on workflows[0].breached.

Example 2: Check several workflows at once on a schedule

Selection: Multiple From List; choose workflows; Threshold: 5; Max Pages: 2.

Example 3: Self-monitoring from within a workflow

Selection: Current Workflow; Threshold: 2.

Links

Discussion