Skip to main content

Module task_flow

Module task_flow 

Source
Expand description

“A filed task #N for B at T”: the task-flow event and the short list of recent ones, the task half of the Atlas agent map’s flow data (the message half is message_flow).

Like it, this carries ids, names, hosts and times only: the task’s number and board slug, who did it, who it is for and what was done. There is no field for the title, the payload, a result or a note.

The srv that owns the board reports what happens to its tasks. A task filed on another computer’s board is also reported by the filer’s srv, once it has the number back, so a map connected to either srv draws the line; both name the task by the board’s host and number, which is how a reader joins them.

The recent list lives in memory only (RECENT_MAX entries, newest last). Each entry remembers the board it is on, so a reader is given only the boards it may see (GET /api/v1/task-flow); the board’s id is never sent.

Structs§

Seen
What a call site knows of a task event: ids and names, never its content.
TaskFlowEvent
The task-flow event’s payload (mps_events::TaskFlow).
TaskFlowTask
A task: its number on a board, the board’s slug and the computer whose board it is.

Enums§

TaskFlowKind
What was done to the task.

Constants§

RECENT_MAX
How many recent task events are kept.

Functions§

install
Start publishing on broker for the rest of the process. The first call wins.
note
Records that seen happened: published as the task-flow event, and kept in the recent list. Does nothing before install.
recent_where
The recent task events on the boards sees says yes to (by board id), oldest first.