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.
Click to show internal directories.
Click to hide internal directories.