You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: tiered job-log compaction so disk stays bounded over long uptime
The server runs for weeks; finished jobs' logs can't grow forever. The hourly
reaper now compacts each finished job's log to a trailing tail — enough to
debug a failure from a phone, not enough to fill the disk:
- running job → full log, never touched (still being appended)
- finished <3h → last 5000 lines
- finished ≥3h → last 500 lines
- >24h → purged (unchanged)
Trimming is idempotent (strips a prior marker before re-measuring, shrink-only)
so hourly passes never erode the tail, and swaps atomically (temp + rename) so a
concurrent poll never reads a half-written log. A marker line records how many
lines were dropped.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>