docs: add a Workflows section for reflex-workflow
Merged
AD
18d ago+1893+1893+0123456789012345678901234567890123456789-8-8-0123456789
Summary
Adds user docs for reflex-workflow (merged in #7288) under docs/workflows/, as a Workflows group in the Backend sidebar.
| Page | Kind |
|---|---|
| Overview | When to use a workflow vs. background events and lifespan tasks, the mental model, requirements, FAQ |
| Tutorial | Build an onboarding workflow in a Reflex app; restart mid-run and watch it resume |
| Defining Workflows, Steps, Runs, Events, Schedules, Fan Out, Concurrency, Workers, Inspecting Runs | Task guides |
| How It Works | Claim/lease/commit lifecycle, guarantees, and what's left to the user's code |
| Reference | Every public name and signature |
Structure follows Diátaxis (tutorial / how-to / explanation / reference kept separate); voice follows the Google developer style guide. Placement of the at-least-once warning and the numbered guarantees list follow Celery's and DBOS's docs.
Also fixes the package README's wake route example, which used an app.api attribute Reflex doesn't have; it now uses api_transformer.
Notes for review
- Pages are named for their sidebar label (labels are title-cased filenames). The reference page is
reference.mdrather thanapi_reference.mdbecause any URL containingapi-referenceswitches the site to the global API Reference sidebar. - Headings avoid apostrophes in linked sections: the renderer keeps them in anchor ids.
manual_titlesgives several pages a fuller<title>than their sidebar label.
Verification
- The tutorial was rebuilt from the page's own code blocks against a real Postgres and driven in a browser: sign-up, reminders, Activate, duplicate sign-up (no second run), and a server restart across a due time (the overdue reminder ran once on startup).
- Every behavioural claim was checked against the engine source.
- Rendered in the docs site; all internal links and anchors resolve.
docs/apptests pass; pre-commit clean.