Something went wrong. Try again.
forked from tangled.org/core
Something went wrong. Try again.
spindle/engine: stream logs to websocket
Logs are streamed for each running pipeline on a websocket at /logs/{pipelineID}. engine.TailStep demuxes stdout and stderr from the container's logs and pipes that out to corresponding stdout and stderr channels. These channels are maintained inside engine's container struct, key'd by the pipeline ID, and protected by a read/write mutex. engine.LogChannels fetches the stdout/stderr chans as recieve-only if the pipeline is known to exist. Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.sh>
Author
anirudh.fi Date (Jun 12, 2025, 4:00 PM UTC) Commit
Copy SHA
Parent d643cad8 d643cad86bd3d5b0c12cd30bf6d00d4df56929e1 Change ID Copy change ID