Exponential Backoff for APIs

Describe the problem/error/question

Hi, I created this exponential backoff mechanism for Google APIs and would like to see if anyone has created something similar or a different approach to handling retries for APIs.

What is the error message (if any)?

No errors, just looking to optimize my approach.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: Latest
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Self-hosted
  • Operating system:
1 Like

Hi @AlexK1919

You can make it a bit simpler with {{ $runIndex }} :slight_smile:
But yeah this stuff is quite annoying to deal with.

1 Like

Thanks, will try that out for the next version.