Advanced retry and delay logic
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER 🎉 Early Black Friday Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
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.