flybrain/infra/units/fly-retention.timer
acamilo 660c3cf00d
Some checks failed
ci / node 22 (test + typecheck) (push) Has been cancelled
ci / rust stable (cargo test --workspace --release) (push) Has been cancelled
ci / infra/tests/lint.sh (push) Has been cancelled
ci / playwright apps/stage (allowed to fail) (push) Has been cancelled
flybrain v0.4.0: public tree (history retained privately)
2026-09-21 15:09:46 +00:00

15 lines
529 B
SYSTEMD

# infra/units/fly-retention.timer — docs/design/infra.md section 3:
# OnUnitActiveSec=1h. Hourly, not daily, on purpose: "a runaway recorder
# must not get 24 hours of rope." OnBootSec=5min is an addition beyond the
# design's own table, so retention gets a first pass shortly after boot
# instead of waiting up to an hour for the first one.
[Unit]
Description=Prune old segments, highlights, and orphan checkpoints hourly
[Timer]
OnBootSec=5min
OnUnitActiveSec=1h
Unit=fly-retention.service
[Install]
WantedBy=timers.target