operators.retry
operators.retry
Section titled “operators.retry”Kind: function
Source: src/graphrefly/operators/_recover.py:151
Signature
Section titled “Signature”retry(g: Graph, deps: Iterable[Node[Any]], inner: InnerBuilder, max_attempts: int = 1, initial_ms: float = 0, factor: float = 1, max_ms: float | None = None, *, name: str | None = None)Description
Section titled “Description”Start the inner again when it ends with an ERROR the policy retries, after the
policy’s delay (O-retry). max_attempts counts every attempt, the first included;
after attempt n fails the next waits initial_ms * factor ** (n - 1) ms, at most
max_ms, on the graph’s clock. inner(g, deps, name) places the inner, one node
over deps, at <name>/inner. Returns the owner;
graphrefly.restartable_of(g, name) gives its handle.
The behavior is the root’s operator contract: the operator contracts.