Execution progress
Build custom timeline UIs with getProgress and SSE watchProgress.
Custom portals often show a timeline or status bar while a workflow or SDK action run is in flight. Prefer the business-readable executionPath (never raw nodes / edges), and use the SDK helpers below so you do not invent your own poll loop.
Snapshot: getProgress
Fetches status + executionPath, then enriches each step with catalogue logos/icons from workflowApps.list().
Live updates: watchProgress
Subscribes to GET /api/executions/:id/stream (Public API SSE). The server pushes execution.progress snapshots as steps change, plus loop.progress for For Each / Repeat, and execution.finished on terminal status.
Use fetch with a Bearer token (the browser EventSource API cannot send Authorization headers).
Lower-level access to raw SSE frames: lunnoa.executions.stream(executionId).
Events on the wire
| Event | Meaning |
|---|---|
connected | Stream attached |
execution.progress | Status + executionPath (+ pendingInput) snapshot |
loop.progress | For Each / Repeat loop counters |
execution.finished | Terminal status (SUCCESS / FAILED / CANCELLED) |
heartbeat | Keep-alive (~15s) |
Related
- Workflows: trigger runs and resume
NEEDS_INPUT - Run actions: one-step SDK executions (
source: SDK) - Errors: 401 / 403 / 429 handling