Doel
Replace the current live command-stream datasource rows.
Elements runtime reference / Live streaming
replaceRowsReplace the current live command-stream datasource rows.
replaceRows(rows=None, **kwargs)
Replace the current live command-stream datasource rows.
replace_rowsUse these fields as the Python call arguments or keyword payload for this helper.
{
"rows": [
{
"step": 2,
"status": "done"
}
]
}
| Field | Description |
|---|---|
rows | List of row dicts, or kwargs['rows']. |
kwargs | Optional command metadata merged into the event payload. |
{
"event": "command",
"op": "replace",
"rows": [
{
"step": 2,
"status": "done"
}
]
}
def run():
replaceRows([{"step": 1, "status": "starting"}])
replaceRows([{"step": 1, "status": "done"}])
return {"ok": True}