Templates / Error handling system with PostgreSQL logging and rate-limited notifications

Error handling system with PostgreSQL logging and rate-limited notifications

Ready for 3.0

by Davi Saranszky Mesquita ✓ · 757 views · created 2025-05-05 · DevOps

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 13 nodes and runs when another workflow calls it (plus 2 other triggers). Along the way it connects Postgres and Pushover.

How it runs

Trigger: When another workflow calls it (plus 2 other triggers).

  1. Insert Log (Postgres): uses Postgres
  2. Count for 5 minutes (Postgres): run a query
  3. Truncate Log Database (Postgres): delete table
  4. CleanUp execution. See below if you will prepend this workflow (Code): runs custom JavaScript code
  5. If: checks a condition and branches into true / false
  6. Call this Sample - Prepend to your error catcher (Execute Sub-workflow): calls another n8n workflow
  7. Principal E-Mail (Send Email): sends an email over SMTP
  8. Push mobile notification (Pushover): uses Pushover
  9. Fallback E-Mail (Send Email): sends an email over SMTP

Services it uses

PostgresPushover

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Log errors and avoid sending too many emails Use case Most of the time, it’s necessary to log all errors that occur. However, in some cases, a scheduled task or service consuming excessive resources might trigger a surge of errors. To address this, we can log…

Excerpt from Davi Saranszky Mesquita's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.