Expand description
The workflow domain model.
These types live here rather than in tmprl-client because logic hangs off them,
status ordering, relative ages, merge-sorting a multi-namespace fan-out, re-finding the
cursor after a refresh. All of that is computable without a server or a terminal, so it
belongs in the crate that needs neither to be tested. tmprl-client maps protobuf into
these; nothing above it ever sees a generated type.
Structs§
- Status
Counts - Counts per status for the list header, from
CountWorkflowExecutions ... GROUP BY. - Workflow
List - The workflow table as it accumulates pages.
- Workflow
Row - One row of the workflow table.
Enums§
- Workflow
Status - Execution status, mirroring
temporal.api.enums.v1.WorkflowExecutionStatus.
Functions§
- by_
start_ time_ desc - Newest first, which is the order the workflow list is read in.
- find_
by_ key - Where a row with this key ended up after a refresh.
- humanize_
age_ ms - A short, fixed-width age like
4s,12m,3h,9d. - merge_
by_ start_ time - Merge per-namespace pages into one table, newest first.