resilience

command
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Example resilience: what happens when workers misbehave.

  • flaky fails twice with an ordinary error: the retry policy (exponential backoff, durable timers) runs it again until attempt 3 succeeds.

  • slow hangs on its first attempt: the per-attempt timeout fires, the late result is ignored, and attempt 2 succeeds.

  • typed returns an output that violates output_schema once: the violation counts as a failed attempt and is retried.

  • broken returns worker.Permanent: no retry, the execution fails with the node and the reason recorded.

    go run ./examples/resilience

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL