Advanced Retry and Delay Logic
## Advanced Retry and Delay Logic This template provides a robust solution for handling API rate limits and temporary service outages in n8n workflows. It overcomes the limitations of the default node retry settings, which cap retries at 5 and delays at 5 seconds. By using a custom loop with a `Set`, `If`, and `Wait` node, this workflow gives you complete control over the number of retries and the delay between them. ### Instructions: 1. Replace the placeholder **HTTP Request** node with your target node (the one that might fail). 2. In the initial **Set Fields** node, modify the `max_tries` value to set the total number of attempts for your workflow. 3. Adjust the `delay_seconds` value to define the initial delay between retries. 4. Optionally, configure the `Edit Fields` node to implement exponential backoff by adjusting the `delay_seconds` expression (e.g., `{{$json.delay_seconds * 2}}`). For a more detailed breakdown and tutorial of this template, you can find additional information [here](https://n8n.io/workflows/925).
Advanced Retry and Delay Logic
This template provides a robust solution for handling API rate limits and temporary service outages in n8n workflows. It overcomes the limitations of the default node retry settings, which cap retries at 5 and delays at 5 seconds. By using a custom loop with a Set, If, and Wait node, this workflow gives you complete control over the number of retries and the delay between them.
Instructions:
- Replace the placeholder HTTP Request node with your target node (the one that might fail).
- In the initial Set Fields node, modify the
max_triesvalue to set the total number of attempts for your workflow. - Adjust the
delay_secondsvalue to define the initial delay between retries. - Optionally, configure the
Edit Fieldsnode to implement exponential backoff by adjusting thedelay_secondsexpression (e.g.,{{$json.delay_seconds * 2}}).
For a more detailed breakdown and tutorial of this template, you can find additional information here.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Secure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Business Operations & ERPs workflows
- Automate Job Applications and Track Status with LinkedIn, Indeed, and Google Sheets$14.99
- Automated Stock Price Monitoring and Alerts for Indian & US Markets$9.99
- Build Custom Workflows Automatically with GPT-4o, RAG, and Web Search$24.99
- AI Chat Agent Receptionist for Clinics$150
- Automatically Archive Zoom Recordings to Google Drive and Log in Airtable$4.99
- Automate Call Scheduling with Voice AI Receptionist Using Twilio, Google Calendar & Airtable$24.99
More from Viktor Klepikovskyi
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.