The built-in retry decision. Retries network errors and responses with a
transient status (408, 425, 429, or 5xx) — except errors restate
attributes to the invocation itself, which are terminal outcomes of the
durable execution and are never retried whatever their status code.
restate-server discloses the origin via the x-restate-error-source header
("invocation" or "ingress"); when it is absent — a proxy stripped it, or
an older server — the status alone drives the decision. See
https://github.com/restatedev/restate/pull/5173.
Exported so a custom RetryPolicy.shouldRetry can compose with it
rather than reimplement it.
The built-in retry decision. Retries network errors and responses with a transient status (
408,425,429, or5xx) — except errors restate attributes to the invocation itself, which are terminal outcomes of the durable execution and are never retried whatever their status code.restate-server discloses the origin via the
x-restate-error-sourceheader ("invocation"or"ingress"); when it is absent — a proxy stripped it, or an older server — the status alone drives the decision. See https://github.com/restatedev/restate/pull/5173.Exported so a custom RetryPolicy.shouldRetry can compose with it rather than reimplement it.