@loopstack/error-retry-example-workflow
Demonstrates Loopstack retry and recovery behaviors across auto-retry, manual retry, custom error places, timeout handling, and hybrid retry patterns.
By using this example you’ll get…
- A guided workflow that walks through five error/retry modes
- Practical examples of
retry,retry.place, andtimeouttransition options - Recovery transitions from error places back into the happy path
Installation
npm install @loopstack/error-retry-example-workflowHow It Works
- Auto-retry: transition retries twice and succeeds on a later attempt.
- Manual retry: a failed transition is retried by the user from Studio.
- Custom error place: failures route to
error_customfor explicit recovery. - Timeout: long-running tool call is cut off, then succeeds on retry.
- Hybrid mode: limited auto-retries then fallback to
error_hybrid.
Each step saves instructional MessageDocument entries so behavior is visible in the UI while running.
Public API
ErrorRetryExampleModuleErrorRetryWorkflow
Dependencies
@loopstack/common
Last updated on