approval

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Command approval shows signals (human-in-the-loop) and the control API.

DATABASE_URL=postgres://localhost:5432/river_dev?sslmode=disable \
    go run ./examples/approval

The "expense" workflow submits a report and then durably waits — possibly for a long time, across restarts — for an external approve/reject decision delivered as a *signal*. This program plays the manager: it starts a workflow, checks its status (it's waiting), then sends the decision. A second run shows cancelling a workflow that's still waiting.

Jump to

Keyboard shortcuts

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