> ## Documentation Index
> Fetch the complete documentation index at: https://headgate.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> Runnable Rust, Go, workflow, encryption, and console scenarios.

Examples use the real runtime and in-memory store and exit with an error if the demonstrated
behavior changes. They require no database or services.

## Run everything

```bash theme={"system"}
scripts/test-examples.sh
```

## Scenario coverage

| Scenario                      | Rust              | Go               |
| ----------------------------- | ----------------- | ---------------- |
| Typed handler and completion  | `basic`           | `basic`          |
| Returned error and retry      | `retry`           | `retry`          |
| Lifecycle uniqueness          | `uniqueness`      | `uniqueness`     |
| Progress                      | `progress`        | `progress`       |
| Durable result                | `job-result`      | —                |
| Non-failure snooze            | `snooze`          | —                |
| Tenant fairness               | `tenant-fairness` | —                |
| Fleet rate limit              | —                 | `rate_limit`     |
| Priority                      | —                 | `priority`       |
| Sticky routing                | —                 | `sticky_routing` |
| Workflow DAG construction     | `workflow`        | `workflow`       |
| Payload encryption round trip | `encryption`      | `encryption`     |
| Full operations console       | —                 | `ui_demo`        |

<CardGroup cols={2}>
  <Card title="Basic worker" icon="play" href="/docs/examples/basic" />

  <Card title="Workflow example" icon="git-fork" href="/docs/examples/workflow" />

  <Card title="Encryption example" icon="lock-keyhole" href="/docs/examples/encryption" />

  <Card title="Console example" icon="panel-top" href="/docs/examples/ui-console" />
</CardGroup>
