Templates / Exponential backoff for Google APIs

Exponential backoff for Google APIs

Ready for 3.0

by Alex Kim ✓ · 1,982 views · created 2024-11-18 · Engineering

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 7 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  2. Google Sheets: uses Google Sheets
  3. Exponential Backoff (Code): runs custom JavaScript code
  4. Wait: pauses before continuing
  5. Check Max Retries (If): checks a condition and branches into true / false
  6. Stop and Error: stops the run with an error

Services it uses

Google Sheets

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

From the author

n8n Workflow: Exponential Backoff for Google APIs Overview This n8n workflow implements an Exponential Backoff mechanism to handle retries when interacting with Google APIs. It ensures that failed API requests are retried with increasing delays, up to a…

Excerpt from Alex Kim'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.