Skip to main content
Node recipes import this retriever.mjs file. Export your variables first:
It handles error format, timeouts, and safe retries:
  • 429: always retried after Retry-After.
  • 5xx and network errors: retried only for GET, or for POST with Idempotency-Key. A POST without a key is never replayed, to avoid duplicates or double billing.
  • waitRun does not count the time a run spends queued, and keeps polling through network errors, 429 and 5xx. Your organization runs at most 5 runs at the same time by default, so in a large batch the later runs wait their turn. See Runs per organization.