WarUI

Automatic retry with exponential backoff

GRID-A04-F18P1baselinePlanned

Retries failed requests automatically using configurable exponential backoff with jitter. The source decides which errors are retryable. Retries respect cancellation and the concurrency limit.

Planned. This page shows the specification from issue #180. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

The simulated failure rate is 30%, and maxAttempts is 3.

Expected behavior

Failed requests are retried with growing delays, shown in the log as 'attempt 2 in 400ms'. 400 errors are not retried by default and go straight to the error state (F19).

Planned API surface

option: retry.maxAttemptsoption: retry.baseDelayMsoption: retry.maxDelayMsoption: retry.jitteroption: retry.isRetryable(error)event: requestRetry

Acceptance criteria

  • The delay before attempt n is min(maxDelayMs, baseDelayMs × 2^(n-1)), adjusted by jitter. (pending)
  • Non-retryable errors fail immediately. (pending)
  • A cancelled request is never retried. (pending)
  • After maxAttempts, the block enters the error state. (pending)