Skip to main content

Module logs

Module logs 

Source
Expand description

Live job log streaming over SSE.

The log stream is not part of the OpenAPI spec, so it is hand-written here. Flow: mint a build-scoped token via HarmontClient::log_token, then HarmontClient::stream_job_logs yields LogEvents per job until the terminal done event.

Structs§

LogChunk
One log chunk. content may hold multiple lines or a partial line — callers buffer and split on \n themselves.
LogToken
A minted, build-scoped log token.

Enums§

LogEvent
A decoded SSE event from the job log stream.
StreamKind
stdout / stderr / meta, per the server’s stream_kind (0/1/2).