Automate Hourly n8n Execution Retries with API Login

This workflow automatically detects failed n8n workflow executions every hour and retries them via the n8n API using an authenticated session. It helps save time and reduces manual error recovery by ensuring all failed runs are retried seamlessly.
manualTrigger
httpRequest
n8n
+6
Workflow Identifier: 2203
NODES in Use: Manual Trigger, Set, HTTP Request, n8n, If, No Operation, Split In Batches, Schedule Trigger, Sticky Note

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow runs every hour. It finds all failed n8n workflow executions. It skips those already retried to avoid duplicates. It logs in using your email and password to get session cookies needed. Then it retries the failed executions in batches of 5. Even if one retry fails, it keeps going. This saves time and lowers mistakes in retrying.

You do not need to check manually for failed runs anymore. Every error is handled automatically.


Tools and Services Used

  • n8n Schedule Trigger Node: Starts workflow hourly.
  • n8n Set Node: Holds login email, password, instance URL, and execution ID template.
  • HTTP Request Node (Login to n8n): Sends POST to /rest/login for session cookies.
  • n8n Node (Executions): Queries API for all executions with error status.
  • If Node: Checks if failed executions were retried before.
  • No Operation Node: Skips executions already retried.
  • Split In Batches Node: Divides retry requests into groups of five.
  • HTTP Request Node (Retry execution): Sends POST to retry endpoint with session cookie.
  • Manual Trigger Node: Lets user run workflow manually for testing.

Inputs, Processing Steps, and Output

Inputs

  • n8n account email and password for API login.
  • n8n server base URL.
  • Workflow executions with error status from n8n API.

Processing Steps

  • Trigger fires every hour.
  • Login HTTP Request sends credentials and gets session cookie.
  • Execution node queries all failed executions with “error” status.
  • If node checks if execution has retrySuccessId.
  • No Operation node ignores already retried executions.
  • Split in Batches node processes executions in batches of 5.
  • HTTP Request retry node posts retry calls using session cookie in each batch.
  • Workflow loops until all batches retried.

Output

  • Failed workflow runs are retried automatically.
  • Reduces manual work and chances of missed retries.
  • Results in more reliable automation workflows.

Beginner Step-by-Step: How to Use This Workflow in n8n Production

Step 1: Import Workflow

  1. Click the Download button on this page to get the workflow file.
  2. Open your n8n Editor.
  3. Use the Import from File feature to import the downloaded workflow.

Step 2: Configure Credentials

  1. Find the Set Node in the workflow.
  2. Update username with your n8n email.
  3. Update password with your n8n password.
  4. Set n8n_instance to your n8n URL (like https://n8n.yourdomain.com/).
  5. Check any other IDs, emails or fields that need changing for your setup.

Step 3: Test Workflow

  1. Run the Manual Trigger Node to test if login works and retries start.
  2. Check for no errors and confirm failed executions are retried.

Step 4: Activate for Production

  1. Toggle the activation switch in n8n Editor to turn on the workflow.
  2. The workflow will now run once every hour automatically.
  3. Monitor first few runs for issues.

Note: If self hosting n8n, consider using self-host n8n services for stable uptime.


Common Setup Problems & Solutions

  • 401 Unauthorized: Happens when login credentials are wrong or the login URL is incorrect. Fix the URL so it ends with /rest/login exactly, and check email/password.
  • Workflow Not Triggering: Check the Schedule Trigger interval is set to hours and workflow is active.
  • No Executions Retried: Verify n8n Node uses filter status = error and the If Node correctly skips those with retrySuccessId.

Customization Ideas

  • Add alerts for failed retries by sending Slack or email messages after the retry HTTP Request Node.
  • Change Split In Batches Node size for more or fewer retries at once.
  • Filter retries for only specific workflows by adding more conditions in the executions query node.
  • Use OAuth Credentials for safer login instead of username and password.
  • Run the schedule trigger more or less often depending on how fast retries need to happen.

Summary and Results

✓ Saves over one hour daily by automating retries.
✓ Ensures all failed executions retry themselves hourly.
✓ Lowers chance of human error missing failed runs.
✓ Keeps automation workflows running smoother.
✓ Easy to set up and customize for user needs.


Frequently Asked Questions

Check that login email and password are correct in the Set node. Make sure the login HTTP Request node URL ends with /rest/login and handles trailing slashes properly.
Verify the Schedule Trigger node is set to run every hour and the workflow is activated in n8n.
Confirm the n8n executions node filters by status ‘error’ and the If node correctly checks the retrySuccessId field.
Yes, this workflow works with self-hosted n8n. For stable uptime, consider using recommended self-host n8n hosting resources.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free