Skip to main content

Retries

note

Retry on error is included on every plan. See Plans and limits.

Retries re-run a failed node before Blokkio treats it as failed. Use them for transient failures such as network errors, rate limits or a briefly unavailable service.

Enabling retries​

  1. Click the node to open it.
  2. Go to the Error Handling tab (for steps with a dedicated editor, such as HTTP Request, If / Else or Transform, the Settings tab).
  3. Under Retry on error, choose Retry this step.

The other choices are Use the workflow default (the step follows the workflow's default retries; none unless you set them) and Don't retry this step (never retried, even with a workflow default; use it for steps that must not run twice).

Two fields appear:

FieldDefaultDescription
Retries3Extra attempts after the first failure, from 1 to 10.
Delay before the first retry (seconds)0The first retry delay, in seconds, up to 3600 (1 hour). 0 uses the platform default of 2 seconds. Later retries back off exponentially (see below).

:::note Older workflows Earlier versions of the editor labelled this field in milliseconds. Values saved that way (above 3600) are read as milliseconds and converted to seconds automatically, so existing workflows keep their intended delay. :::

Backoff and jitter​

Delays grow exponentially. Each retry waits twice as long as the previous one:

delay(n) = base × 2^(n − 1), capped at 1 hour, then × a random factor between 0.8 and 1.2

where base is your Delay before the first retry (or 2 seconds when it is 0) and n is the retry number. The random ±20% jitter keeps many failing runs from retrying against the same service at the same moment.

With Retries 3 and Delay before the first retry 5:

AttemptWaits before running
1 (original)—
2 (retry 1)about 5 s (4–6 s)
3 (retry 2)about 10 s (8–12 s)
4 (retry 3)about 20 s (16–24 s)

The node runs at most 4 times in total. Waiting doesn't block a worker: the retry is scheduled as a new message.

Behaviour​

  1. The node runs.
  2. If it fails (including a timeout), Blokkio waits for the backoff delay and runs it again.
  3. This repeats until the node succeeds or the attempts are used up.
  4. If every attempt fails:
    • with an error port, the run continues down the error branch;
    • with Continue on error, the run continues along the normal output;
    • otherwise the execution stops and is marked Failed.

Each attempt shows up in the execution logs. Retries also work for nodes inside loop bodies.

Cancelling an execution stops pending retries. An Approval Gate that times out is never retried.

Retries in HTTP Request​

The HTTP Request node also has its own retry options for failed responses, which honour the server's Retry-After header. Use those for HTTP-level retries (such as 429 and 5xx responses), and node-level retries for everything else.

Delay guidance​

Use caseSuggested first delay
Network blip1–2 s
Per-second rate limit2–5 s
Per-minute rate limit30–60 s
Upstream service restart10–30 s

Because of the exponential backoff, a small first delay with a few attempts covers a long window: with a 30-second first delay, retries 1 to 4 wait about 30 s, 1 min, 2 min and 4 min.