Doel
Emit a live progress/status event during ExecuteStream runs.
Elements runtime reference / Live streaming
emitProgressEmit a live progress/status event during ExecuteStream runs.
emitProgress(payload=None, **kwargs)
Emit a live progress/status event during ExecuteStream runs.
emit_progressprogressUse these fields as the Python call arguments or keyword payload for this helper.
{
"phase": "running",
"message": "Loaded batch",
"progressPercent": 50,
"details": {
"batch": 2
}
}
| Field | Description |
|---|---|
payload | Optional dict with phase, message, progressPercent, and details. |
kwargs | Merged into payload. |
{
"event": "progress",
"phase": "running",
"message": "Loaded batch",
"progressPercent": 50,
"details": {
"batch": 2
}
}
def run():
emitProgress(phase="running", message="Loaded batch", progressPercent=50)
return {"ok": True}