Skip to main content

Module workflow

Module workflow 

Source
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§

StatusCounts
Counts per status for the list header, from CountWorkflowExecutions ... GROUP BY.
WorkflowList
The workflow table as it accumulates pages.
WorkflowRow
One row of the workflow table.

Enums§

WorkflowStatus
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.