mirror of
https://github.com/storytold/autocraft.git
synced 2026-12-01 10:33:55 +01:00
Each launcher pass reads a running step container's new output (one read of at most 512 KB, complete lines only) and appends it to the task log; the rest follows when the step ends. Reads start at a whole second before the last appended line (sinceTime, timestamps) and skip the lines of that window already appended, so lines sharing a timestamp at the boundary are neither dropped nor repeated. The position is kept per container in build_pod_runs.log_positions and written in the same transaction as the appended lines, so a runner restart resumes exactly where it stopped.