docs: add a Workflows section for reflex-workflow

Merged
AD
18d ago
+1893-8

Summary

Adds user docs for reflex-workflow (merged in #7288) under docs/workflows/, as a Workflows group in the Backend sidebar.

PageKind
OverviewWhen to use a workflow vs. background events and lifespan tasks, the mental model, requirements, FAQ
TutorialBuild 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 RunsTask guides
How It WorksClaim/lease/commit lifecycle, guarantees, and what's left to the user's code
ReferenceEvery 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.md rather than api_reference.md because any URL containing api-reference switches the site to the global API Reference sidebar.
  • Headings avoid apostrophes in linked sections: the renderer keeps them in anchor ids.
  • manual_titles gives 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/app tests pass; pre-commit clean.