steps
steps
#
The steps table: every step a living process has open, and how far along it is.
StepRow
dataclass
#
One open step: what it is, who runs it, and how far along it is.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
The step's identifier. |
parent_id |
str | None
|
The step it opened beneath, if any. |
call_key |
CallKey | None
|
The call key, when the step is a memoized call. |
identity |
str | None
|
The function identity, when the step is a memoized call. |
label |
str
|
What the step is doing. |
owner_pid |
int
|
The process running it. |
owner_boot |
int
|
That process's liveness nonce. |
workspace |
Path | None
|
The workspace a memoized call computes in. |
started_at |
float
|
When the step opened. |
done |
int
|
How many units are done. |
total |
int | None
|
How many there are, if known. |
note |
str | None
|
The step's last message, if any. |
fields |
dict[str, JSONValue]
|
The named values its notes carried. |
Source code in capturegraph-lib/capturegraph/recipes/scratch/index/steps.py
all_rows(db)
#
Every step row, oldest first.
delete(db, id)
#
upsert(db, row)
#
Write row, replacing what the index held for its id.