mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-29 09:33:55 +01:00
The runner copies the new whole lines of a running job's log file into job_log_chunks every 5 seconds and once at its end (one INSERT per copy, one DELETE of the oldest chunks once a job passes 256 KiB plus slack), and command-line runs do the same. The job page reads the log file when it is on its disk and the stored chunks otherwise, so a dashboard that does not share the runner's volume shows job logs. pruneJobs deletes the chunks with the job.