Running and debugging
Run the flow
Section titled “Run the flow”Press Run in the top bar, or Ctrl+Enter. The studio starts a build with POST /api/v1/build/{id}/flow and follows its event stream (GET /api/v1/build/{job}/events, NDJSON). While it runs, Run turns into Stop, which cancels the build.
In the studio, a failing component ends only its own branch. Its error appears on the node, and the other branches keep running. (POST /api/v1/run is different: it stops at the first failure.)
Status chips
Section titled “Status chips”Each component shows a chip in its header:
| Chip | Meaning |
|---|---|
| queued | waiting for its inputs |
| running | building now; wires into it animate |
a duration, for example 412 ms |
built; the time the server measured for this component |
| error | failed; the message is shown under the header |
| skipped | not run, for example on a router branch that was not taken |
Output popover
Section titled “Output popover”Click a component’s status chip to open its output next to the node, as text or JSON. Click again, or the close button, to hide it.
The run log
Section titled “The run log”Run log in the top bar opens a dock under the canvas. It opens by itself on every run and has three tabs.
- Run: a waterfall with one row per component. Each bar starts when the component started and is as long as it ran. The summary shows how many components were built and the total duration.
- Outputs: the outputs of the component selected in the waterfall.
- Logs: errors and log lines from the run.
Where the timings come from
Section titled “Where the timings come from”Every number in the run log comes from the server, never from your browser’s receive times:
- The end time is the
end_vertexevent’sbuild_data.timestamp. - The duration is the event’s
data.timedelta. - The start time is the end time minus the duration.
Durations are exact. Bar positions come from millisecond timestamps, so in very short runs they are accurate to about 1 ms. The studio shows only numbers the server sends. Token counts appear only when a message carries them.
Run to here
Section titled “Run to here”Each node has a play button, Run the flow up to this component. It builds the flow only as far as that component (the build’s stop_component_id). Use it to check one part of a flow without running everything after it.
Logs on the server
Section titled “Logs on the server”The server writes builds, transactions and traces to SQLite in batches (up to 200 rows, at least every 0.5 s). You can read them through the monitor API:
GET /api/v1/monitor/builds?flow_id=GET /api/v1/monitor/transactions?flow_id=GET /api/v1/monitor/traces?flow_id=
These routes flush the queue before reading, so a run you just finished is visible. Stored payloads are cut: strings to 6,000 characters and lists to 1,000 items. See Configuration for the retention settings.
Weftra is open source under Apache-2.0. Made by Liceron.