Hongdam หงส์ดำLINE

Automation · · 4 minutes to read

n8n 2.50 retries a failed trigger 25 times in 72 hours; its crash shut-off is off

n8n รุ่นถัดไปลองเปิด trigger ที่ล้มเหลวใหม่ 25 ครั้งใน 72 ชั่วโมง ส่วนระบบหยุด workflow ที่ทำให้เครื่องล่มยังปิดไว้เป็นค่าเริ่มต้น

n8n 2.50.0 and 3.4.0, pre-releases from 24 November, bring a trigger back after an outage without a re-publish; stable 2.49.6 does not. Unpublishing a workflow that crashes n8n is off unless you set one variable.

A trigger is the first node of an n8n workflow: the webhook, mail inbox, schedule or poll that starts each run. When you publish a workflow, n8n registers its triggers with the outside service. If that service is down at that moment, or n8n restarts during its outage, activation fails. On n8n 2.49.6, the stable release on 26 November 2026 3, the workflow stays published with a dead trigger until someone publishes it again; the change that ends this says it lets a workflow "recover without a user publishing it again" 4.

That change, PR #43708, merged on 20 November and shipped on 24 November in two pre-releases: 2.50.0 and 3.4.0 124. A pre-release is the version n8n puts out for testing before it becomes the default download. The same releases carry a second change, PR #43685, which unpublishes a workflow that crashes the whole n8n process 6. On a self-hosted instance that one is off by default 78.

A failed trigger now retries on a doubling clock for three days

The schedule lives in three constants in the 3.4.0 source 5: the first retry waits one minute, each failed retry doubles the wait, the wait stops growing at four hours, and retries end once a trigger has failed for three days. The comments give the reasons: a retry at once would hit the same outage, a four-hour cap limits a dead trigger to six attempts a day, and three days covers an outage from Friday evening to Monday morning 5.

We replayed those rules in a short script on 26 November 2026, with each attempt taking no time; real times run a few seconds later.

RetryWait before itTime since the first failure
11 min1 min
22 min3 min
34 min7 min
48 min15 min
516 min31 min
632 min1 h 03 min
764 min2 h 07 min
8128 min4 h 15 min
9 to 254 h each8 h 15 min to 72 h 15 min
Retries that fall inside each window after the first failure
First hour5
First 4 hours7
First day12
Three days25
Replayed from the constants in n8n 3.4.0, 26 November 2026; attempt time taken as zero.

The cost of the cap: after the first eight hours, a service that comes back waits up to four hours for its trigger. An inbox server that returns at 8 h 20 min gets its trigger back at the 12 h 15 min retry, 3 h 55 min later. A restart of n8n, or a new leader in a multi-main setup, tries every scheduled workflow once without waiting for its delay 4, so a restart is the quick way to bring one back.

Three more details from the PR 4:

  • A failure that needs a person (a policy refusal, two workflows on the same webhook path) schedules no retry.
  • Publishing by hand resets the schedule and gives the trigger the usual five activation attempts.
  • The database migration schedules a first retry for failures already on record, so a dead trigger from last week gets its first try after the upgrade.

During a rolling upgrade, failures recorded by a leader still on the older version get no delay and stay unscheduled 4.

The crash shut-off counts three crashes in six hours, and is off unless you turn it on

n8n already marks runs that were in progress at a crash as crashed, and it can unpublish a workflow whose last three runs crashed, then email the owner. PR #43685 lists four ways a crash loop slipped past that check 6. Two of them: a workflow set not to save failed runs loses its crashed rows at the next pruning, and a poll trigger crashing n8n mid-fetch leaves no run at all.

The fix writes a small file next to n8n's crash log. At each start after a crash, if exactly one workflow was in progress, that workflow gets one crash on its tally; if none or several were, the tally clears. Crashes older than six hours drop out. At three, n8n unpublishes the workflow before the scheduler starts any job 6.

The PR states the feature is on in n8n Cloud 6. Self-hosted, both the old check and the new tally read one setting 79, and the docs list its default as false 8. With it off, n8n logs a warning naming the workflow that was alone in flight at the crash, and leaves it published 9.

Turning it on

Two environment variables control it 8:

N8N_WORKFLOW_AUTODEACTIVATION_ENABLED=true
# crashes in a row, within six hours, before the workflow is unpublished; 3 is the default
N8N_WORKFLOW_AUTODEACTIVATION_MAX_LAST_EXECUTIONS=3

Set them where n8n gets its environment: the environment: block of a Docker Compose file, or the service's environment file. The crash tally needs 2.50.0 or 3.4.0 12; on 2.49.6 the variable turns on only the older last-three-runs check.

For an install on 2.x, 2.50.0 carries both changes without the move to the 3.x line 12. On 2.49.6, a trigger that failed activation during an outage waits for someone to publish the workflow again 4.

Sources

  1. Release n8n@3.4.0 · n8n-io/n8n github.com
  2. Release n8n@2.50.0 · n8n-io/n8n github.com
  3. Release n8n@2.49.6 · n8n-io/n8n github.com
  4. fix(core): Retry failed trigger activations with exponential backoff · PR #43708 · n8n-io/n8n github.com
  5. workflow-publication-retry-state.repository.ts at n8n@3.4.0 · n8n-io/n8n github.com
  6. fix(core): Count process crashes per workflow for auto-unpublishing · PR #43685 · n8n-io/n8n github.com
  7. executions.config.ts at n8n@3.4.0 · n8n-io/n8n github.com
  8. Executions environment variables · n8n Docs docs.n8n.io
  9. crash-loop-recovery.ts at n8n@3.4.0 · n8n-io/n8n github.com

Hongdam Studio services on this topic