Doel
Append rows to a live command-stream datasource while the Element is still running.
Elements runtime reference / Live streaming
appendRowsAppend rows to a live command-stream datasource while the Element is still running.
appendRows(rows=None, **kwargs)
Append rows to a live command-stream datasource while the Element is still running.
append_rowsUse these fields as the Python call arguments or keyword payload for this helper.
{
"rows": [
{
"step": 1,
"status": "running"
}
]
}
| Field | Description |
|---|---|
rows | List of row dicts, or kwargs['rows']. |
kwargs | Optional command metadata merged into the event payload. |
{
"event": "command",
"op": "append",
"rows": [
{
"step": 1,
"status": "running"
}
]
}
def run():
appendRows([{"step": 1, "status": "running"}])
appendRows([{"step": 2, "status": "done"}])
return {"ok": True}